Skip to content

Commit

Permalink
add rustdoc for tonic::Result
Browse files Browse the repository at this point in the history
  • Loading branch information
stphnsmpsn committed Sep 23, 2022
1 parent 09f11fd commit cc27a87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tonic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,6 @@ pub(crate) type Error = Box<dyn std::error::Error + Send + Sync>;
#[cfg_attr(docsrs, doc(cfg(feature = "codegen")))]
pub mod codegen;

/// `Result` is a type that represents either success ([`Ok`]) or failure ([`Err`]).
/// By default, the Err value is of type [`Status`] but this can be overridden if desired.
pub type Result<T, E = Status> = std::result::Result<T, E>;

0 comments on commit cc27a87

Please sign in to comment.