Skip to content

Commit

Permalink
docs: Fix typo in README (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
wisarmy authored Feb 13, 2023
1 parent 1fcd11a commit a39d446
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 @@ -40,7 +40,7 @@ Retry an async function.

```rust
use anyhow::Result;
use backon::ExponentialBackoff;
use backon::ExponentialBuilder;
use backon::Retryable;

async fn fetch() -> Result<String> {
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(&ExponentialBuilder::default()).await?;
println!("fetch succeeded: {}", content);

Ok(())
Expand Down

0 comments on commit a39d446

Please sign in to comment.