Skip to content

Commit

Permalink
chore: fix a few typos (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel authored Jul 23, 2024
1 parent 85080a5 commit 7202cfe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tower/src/builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ impl<L> ServiceBuilder<L> {
/// // ...but we want to call that service with a `usize`. What do we do?
///
/// let usize_svc = ServiceBuilder::new()
/// // Add a middlware that converts the request type to a `String`:
/// // Add a middleware that converts the request type to a `String`:
/// .map_request(|request: usize| format!("{}", request))
/// // ...and wrap the string service with that middleware:
/// .service(string_svc);
Expand Down
2 changes: 1 addition & 1 deletion tower/src/load/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
//! [`TrackCompletion`] trait, with [`CompleteOnResponse`] as the default type. The behavior of
//! [`CompleteOnResponse`] is what you would normally expect for a request-response cycle: when the
//! response is produced, the request is considered "finished", and load goes down. This can be
//! overriden by your own user-defined type to track more complex request completion semantics. See
//! overridden by your own user-defined type to track more complex request completion semantics. See
//! the documentation for [`completion`] for more details.
//!
//! # Examples
Expand Down
2 changes: 1 addition & 1 deletion tower/src/ready_cache/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use tracing::{debug, trace};
/// the _pending_ set to be driven to readiness again.
///
/// When `ReadyCache::check_ready*` returns `false`, it indicates that the
/// specified service is _not_ ready. If an error is returned, this indicats that
/// specified service is _not_ ready. If an error is returned, this indicates that
/// the server failed and has been removed from the cache entirely.
///
/// [`ReadyCache::evict`] can be used to remove a service from the cache (by key),
Expand Down
2 changes: 1 addition & 1 deletion tower/src/util/call_all/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ where
let svc = this
.service
.as_mut()
.expect("Using CallAll after extracing inner Service");
.expect("Using CallAll after extracting inner Service");

if let Err(e) = ready!(svc.poll_ready(cx)) {
// Set eof to prevent the service from being called again after a `poll_ready` error
Expand Down

0 comments on commit 7202cfe

Please sign in to comment.