From eeb3268f71ae5d1107c937392389db63d8f721fb Mon Sep 17 00:00:00 2001 From: pavedroad <138004431+pavedroad@users.noreply.github.com> Date: Wed, 13 Mar 2024 22:15:50 +0800 Subject: [PATCH] chore: remove repetitive words (#1653) Signed-off-by: pavedroad --- examples/routeguide-tutorial.md | 2 +- tonic/src/transport/service/add_origin.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/routeguide-tutorial.md b/examples/routeguide-tutorial.md index 88ae833af..2ff278f0e 100644 --- a/examples/routeguide-tutorial.md +++ b/examples/routeguide-tutorial.md @@ -678,7 +678,7 @@ async fn print_features(client: &mut RouteGuideClient) -> Result<(), Bo As in the simple RPC, we pass a single value request. However, instead of getting a single value back, we get a stream of `Features`. -We use the the `message()` method from the `tonic::Streaming` struct to repeatedly read in the +We use the `message()` method from the `tonic::Streaming` struct to repeatedly read in the server's responses to a response protocol buffer object (in this case a `Feature`) until there are no more messages left in the stream. diff --git a/tonic/src/transport/service/add_origin.rs b/tonic/src/transport/service/add_origin.rs index fdd7d3f9e..a25485937 100644 --- a/tonic/src/transport/service/add_origin.rs +++ b/tonic/src/transport/service/add_origin.rs @@ -49,7 +49,7 @@ where // Split the request into the head and the body. let (mut head, body) = req.into_parts(); - // Update the the request URI + // Update the request URI head.uri = { // Split the request URI into parts. let mut uri: http::uri::Parts = head.uri.into();