Skip to content

Commit

Permalink
Rephrase docs
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Oct 17, 2024
1 parent 9bb5716 commit 5026f92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zebra-rpc/src/server/http_request_compatibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ pub struct HttpRequestMiddleware {
cookie: Option<Cookie>,
}

/// A trait for applying a modification to an object, consuming it and returning the modified
/// version.
/// A trait for updating an object, consuming it and returning the updated version.
pub trait With<T> {
/// Modifies `self` with an instance of type `T` and returns the modified version of `self`.
/// Updates `self` with an instance of type `T` and returns the updated version of `self`.
fn with(self, _: T) -> Self;
}

Expand Down

0 comments on commit 5026f92

Please sign in to comment.