docs(server): refer to bind method, not serve

Fixes #1180.
This commit is contained in:
Sander Maijers
2017-05-20 15:02:05 +02:00
committed by Sander Maijers
parent 12d01e4023
commit c07872951b

View File

@@ -114,7 +114,7 @@ impl<B: AsRef<[u8]> + 'static> Http<B> {
/// will be handled (and mapped to responses).
///
/// This method is typically not invoked directly but is rather transitively
/// used through the `serve` helper method above. This can be useful,
/// used through [`bind`](#method.bind). This can be useful,
/// however, when writing mocks or accepting sockets from a non-TCP
/// location.
pub fn bind_connection<S, I, Bd>(&self,