From eb643c4d9e4869f1e949309d9207053dd5bf6f60 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Thu, 8 Sep 2016 10:33:41 -0400 Subject: [PATCH] Add links in docs to `channel` function. --- src/channel.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/channel.rs b/src/channel.rs index e5aa86b23..85c1d4107 100644 --- a/src/channel.rs +++ b/src/channel.rs @@ -17,7 +17,9 @@ use reactor::{Handle, PollEvented}; /// A `Sender` can be `clone`d to have multiple threads or instances sending /// messages to one receiver. /// -/// This type is created by the `channel` function. +/// This type is created by the [`channel`] function. +/// +/// [`channel`]: fn.channel.html pub struct Sender { tx: channel::Sender, } @@ -28,8 +30,10 @@ pub struct Sender { /// A `Receiver` cannot be cloned, so only one thread can receive messages at a /// time. /// -/// This type is created by the `channel` function and implements the `Stream` -/// trait to represent received messages. +/// This type is created by the [`channel`] function and implements the +/// `Stream` trait to represent received messages. +/// +/// [`channel`]: fn.channel.html pub struct Receiver { rx: PollEvented>, }