diff --git a/src/codec/length_delimited.rs b/src/codec/length_delimited.rs index b4788651380..f50b3cc7f87 100644 --- a/src/codec/length_delimited.rs +++ b/src/codec/length_delimited.rs @@ -9,10 +9,10 @@ //! # Getting started //! //! If implementing a protocol from scratch, using length delimited framing -//! is an easy way to get started. [`Codec::new()`] will return a length -//! delimited codec using default configuration values. This can then be -//! used to construct a framer to adapt a full-duplex byte stream into a -//! stream of frames. +//! is an easy way to get started. [`LengthDelimitedCodec::new()`] will +//! return a length delimited codec using default configuration values. +//! This can then be used to construct a framer to adapt a full-duplex +//! byte stream into a stream of frames. //! //! ``` //! # extern crate tokio; @@ -345,6 +345,7 @@ //! +------------+--------------+ //! ``` //! +//! [`LengthDelimitedCodec::new()`]: struct.LengthDelimitedCodec.html#method.new //! [`FramedRead`]: struct.FramedRead.html //! [`FramedWrite`]: struct.FramedWrite.html //! [`AsyncRead`]: ../../trait.AsyncRead.html diff --git a/tokio-io/src/codec/mod.rs b/tokio-io/src/codec/mod.rs index 6ef3d5e92c5..47c1071cc72 100644 --- a/tokio-io/src/codec/mod.rs +++ b/tokio-io/src/codec/mod.rs @@ -46,7 +46,7 @@ pub mod length_delimited { //! # Getting started //! //! If implementing a protocol from scratch, using length delimited framing - //! is an easy way to get started. [`Framed::new()`] will adapt a + //! is an easy way to get started. [`Framed::new()`](length_delimited::Framed::new) will adapt a //! full-duplex byte stream with a length delimited framer using default //! configuration values. //! diff --git a/tokio-timer/src/timeout.rs b/tokio-timer/src/timeout.rs index 72b3af80b9f..783f87853cb 100644 --- a/tokio-timer/src/timeout.rs +++ b/tokio-timer/src/timeout.rs @@ -63,10 +63,11 @@ use std::time::{Instant, Duration}; /// Cancelling a `Timeout` is done by dropping the value. No additional cleanup /// or other work is required. /// -/// The original future or stream may be obtained by calling [`into_inner`]. This +/// The original future or stream may be obtained by calling [`Timeout::into_inner`]. This /// consumes the `Timeout`. /// /// [`Error`]: struct.Error.html +/// [`Timeout::into_inner`]: struct.Timeout.html#method.into_iter #[must_use = "futures do nothing unless polled"] #[derive(Debug)] pub struct Timeout {