Skip to content

Commit

Permalink
Fix some doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed May 18, 2021
1 parent 01c187b commit fb38e9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tonic/src/transport/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,10 @@ where
}

/// Consume this [`Server`] creating a future that will execute the server
/// on [`tokio`]'s default executor.
/// on [tokio]'s default executor.
///
/// [`Server`]: struct.Server.html
/// [tokio]: https://docs.rs/tokio
pub async fn serve<ResBody>(self, addr: SocketAddr) -> Result<(), super::Error>
where
L: Layer<Routes<A, B, Request<Body>>>,
Expand All @@ -635,10 +636,11 @@ where
}

/// Consume this [`Server`] creating a future that will execute the server
/// on [`tokio`]'s default executor. And shutdown when the provided signal
/// on [tokio]'s default executor. And shutdown when the provided signal
/// is received.
///
/// [`Server`]: struct.Server.html
/// [tokio]: https://docs.rs/tokio
pub async fn serve_with_shutdown<F: Future<Output = ()>, ResBody>(
self,
addr: SocketAddr,
Expand Down

0 comments on commit fb38e9c

Please sign in to comment.