From ac2a1b987d23710d21c63a9940804dd0fb80f14f Mon Sep 17 00:00:00 2001 From: gaomingjun Date: Mon, 13 Feb 2023 16:00:23 +0800 Subject: [PATCH] docs: Fix typo in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87e8c0a..cb3a6d2 100644 --- a/README.md +++ b/README.md @@ -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 { @@ -49,7 +49,7 @@ async fn fetch() -> Result { #[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(())