diff --git a/src/server/mod.rs b/src/server/mod.rs index 7eb6c7fe..37c44279 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -104,8 +104,8 @@ //! `Response` includes a `headers_mut()` method, allowing you add more //! headers. It also does not implement `Write`, so you can't accidentally //! write early. Once the "head" of the response is correct, you can "send" it -//! out by calling `start` on the `Request`. This will return a new -//! `Request` object, that no longer has `headers_mut()`, but does +//! out by calling `start` on the `Response`. This will return a new +//! `Response` object, that no longer has `headers_mut()`, but does //! implement `Write`. use std::fmt; use std::io::{self, ErrorKind, BufWriter, Write};