Merge pull request #1185 from sanmai-NL/rename_bind_docs

docs(server): refer to `bind` method, not `serve`
This commit is contained in:
Sean McArthur
2017-05-20 10:35:50 -05:00
committed by GitHub

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,