Skip to content

Commit

Permalink
docs: update readme.md to match the output (#2486)
Browse files Browse the repository at this point in the history
* docs(examples): fix typos

Signed-off-by: hui <[email protected]>

* docs(examples): add missing code in README.md

Signed-off-by: hui <[email protected]>

---------

Signed-off-by: hui <[email protected]>
  • Loading branch information
rrain7 authored Jun 18, 2023
1 parent fcda0be commit db2b1b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/rust/01-init-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ Let's take look over `init_operator_via_builder` function first.
```rust
fn init_operator_via_builder() -> Result<Operator> {
let mut builder = S3::default();
builder.bucket("exampl");
builder.bucket("example");
builder.access_key_id("access_key_id");
builder.secret_access_key("secret_access_key");
builder.region("us-east-1");

let op = Operator::new(builder)?.finish();
Ok(op)
Expand Down Expand Up @@ -130,6 +131,7 @@ fn init_operator_via_map() -> Result<Operator> {
"secret_access_key".to_string(),
"secret_access_key".to_string(),
);
map.insert("region".to_string(), "us-east-1".to_string());

let op = Operator::via_map(Scheme::S3, map)?;
Ok(op)
Expand Down

0 comments on commit db2b1b9

Please sign in to comment.