docs: Replace ready_and() with ready() in docs (#611)

This commit is contained in:
Folyd 2021-11-02 22:19:50 +08:00 committed by GitHub
parent 80c6e38f2f
commit 0f16ea5652
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ use tower_service::Service;
/// let mut service = service_fn(handle);
///
/// let response = service
/// .ready_and()
/// .ready()
/// .await?
/// .call(Request::new())
/// .await?;