diff --git a/examples/routeguide-tutorial.md b/examples/routeguide-tutorial.md index e3ff6f0ed..d002cff08 100644 --- a/examples/routeguide-tutorial.md +++ b/examples/routeguide-tutorial.md @@ -401,7 +401,7 @@ async fn list_features( &self, request: Request, ) -> Result, Status> { - let (mut tx, rx) = mpsc::channel(4); + let (tx, rx) = mpsc::channel(4); let features = self.features.clone(); tokio::spawn(async move { @@ -668,7 +668,7 @@ async fn print_features(client: &mut RouteGuideClient) -> Result<(), Bo .into_inner(); while let Some(feature) = stream.message().await? { - println!("NOTE = {:?}", feature); + println!("FEATURE = {:?}", feature); } Ok(()) diff --git a/examples/src/routeguide/client.rs b/examples/src/routeguide/client.rs index 662dfccad..db61e1c39 100644 --- a/examples/src/routeguide/client.rs +++ b/examples/src/routeguide/client.rs @@ -32,7 +32,7 @@ async fn print_features(client: &mut RouteGuideClient) -> Result<(), Bo .into_inner(); while let Some(feature) = stream.message().await? { - println!("NOTE = {:?}", feature); + println!("FEATURE = {:?}", feature); } Ok(())