From 236c35ec3e7375c8ec3e419f91346681164e682d Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 11 Aug 2016 23:02:21 +0200 Subject: [PATCH] Fix links to promise function vs Promise type --- TUTORIAL.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index 4d2d5a51e3a..54038b7b837 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -820,15 +820,16 @@ and is used to complete the promise, providing a value to the future on the other end. The [`Complete::complete`] method will transmit the value to the receiving end. -The second half, `rx` ("receiver"), is of type [`Promise`] which is a type that -implements the [`Future`] trait. The `Item` type is `T`, the type of the promise. +The second half, `rx` ("receiver"), is of type [`Promise`][promise-type] which is +a type that implements the [`Future`] trait. The `Item` type is `T`, the type of +the promise. The `Error` type is [`Canceled`], which happens when the [`Complete`] half is dropped without completing the computation. [`mpsc::channel`]: https://doc.rust-lang.org/std/sync/mpsc/fn.channel.html [`Complete`]: http://alexcrichton.com/futures-rs/futures/struct.Complete.html [`Complete::complete`]: http://alexcrichton.com/futures-rs/futures/struct.Complete.html#method.complete -[`Promise`]: http://alexcrichton.com/futures-rs/futures/struct.Promise.html +[promise-type]: http://alexcrichton.com/futures-rs/futures/struct.Promise.html [`Canceled`]: http://alexcrichton.com/futures-rs/futures/struct.Canceled.html This concrete implementation of `Future` can be used (as shown here) to