Skip to content

Commit

Permalink
docs: Fix typo in examples (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuanwo authored Feb 8, 2023
1 parent 691f361 commit 1fcd11a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn fetch() -> Result<String> {
}

fn main() -> Result<()> {
let content = fetch.retry(ExponentialBuilder::default()).call()?;
let content = fetch.retry(&ExponentialBuilder::default()).call()?;
println!("fetch succeeded: {}", content);

Ok(())
Expand All @@ -49,7 +49,7 @@ async fn fetch() -> Result<String> {

#[tokio::main]
async fn main() -> Result<()> {
let content = fetch.retry(ExponentialBackoff::default()).await?;
let content = fetch.retry(&ExponentialBackoff::default()).await?;
println!("fetch succeeded: {}", content);

Ok(())
Expand Down

0 comments on commit 1fcd11a

Please sign in to comment.