Skip to content

Commit

Permalink
chore: fix typos (#1563)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoer86 authored Nov 13, 2023
1 parent f089e7a commit 680214b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/src/richer-error/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
};

println!(" Successfull response received.\n\n {:?}\n", response);
println!(" Successful response received.\n\n {:?}\n", response);

Ok(())
}
2 changes: 1 addition & 1 deletion examples/src/richer-error/client_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
};

println!(" Successfull response received.\n\n {:?}\n", response);
println!(" Successful response received.\n\n {:?}\n", response);

Ok(())
}
2 changes: 1 addition & 1 deletion tonic-build/src/prost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ impl Builder {
/// should be enabled automatically when run from a build script. However,
/// the method of detection is not completely reliable since the `CARGO`
/// environment variable can have been set by anything else. If writing the
/// instructions to `stdout` is undesireable, you can disable this setting
/// instructions to `stdout` is undesirable, you can disable this setting
/// explicitly.
pub fn emit_rerun_if_changed(mut self, enable: bool) -> Self {
self.emit_rerun_if_changed = enable;
Expand Down
2 changes: 1 addition & 1 deletion tonic-web/src/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ fn make_trailers_frame(trailers: HeaderMap) -> Vec<u8> {
/// Search some buffer for grpc-web trailers headers and return
/// its location in the original buf. If `None` is returned we did
/// not find a trailers in this buffer either because its incomplete
/// or the buffer jsut contained grpc message frames.
/// or the buffer just contained grpc message frames.
fn find_trailers(buf: &[u8]) -> Result<FindTrailers, Status> {
let mut len = 0;
let mut temp_buf = &buf[..];
Expand Down
2 changes: 1 addition & 1 deletion tonic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
//! ## Max Message Size
//!
//! Currently, both servers and clients can be configured to set the max message encoding and
//! decoding size. This will ensure that an incoming gRPC message will not exahust the systems
//! decoding size. This will ensure that an incoming gRPC message will not exhaust the systems
//! memory. By default, the decoding message limit is `4MB` and the encoding limit is `usize::MAX`.
//!
//! [gRPC]: https://grpc.io
Expand Down

0 comments on commit 680214b

Please sign in to comment.