From 5026f921c57b92493e10ff65ff7d9ff6e7b8e092 Mon Sep 17 00:00:00 2001 From: Marek Date: Thu, 17 Oct 2024 14:53:01 +0200 Subject: [PATCH] Rephrase docs --- zebra-rpc/src/server/http_request_compatibility.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zebra-rpc/src/server/http_request_compatibility.rs b/zebra-rpc/src/server/http_request_compatibility.rs index 000af787b94..89925c229b8 100644 --- a/zebra-rpc/src/server/http_request_compatibility.rs +++ b/zebra-rpc/src/server/http_request_compatibility.rs @@ -47,10 +47,9 @@ pub struct HttpRequestMiddleware { cookie: Option, } -/// 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 { - /// 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; }