Skip to content

Commit f4179d0

Browse files
authored
Merge pull request #1185 from sanmai-NL/rename_bind_docs
docs(server): refer to `bind` method, not `serve`
2 parents 12d01e4 + c078729 commit f4179d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/mod.rs

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

0 commit comments

Comments
 (0)