about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-05-06 19:32:18 -0400
committerCorey Farwell <coreyf@rwell.org>2016-05-09 08:40:57 -0400
commit62b19c627ebde2bbfa6021de146c502124da7975 (patch)
tree1dddc25ccb212bba5ceb77a9613bee56368082af /src/libstd/sync
parent50909f2d5036e59871f779500dd722a62421c13c (diff)
downloadrust-62b19c627ebde2bbfa6021de146c502124da7975.tar.gz
rust-62b19c627ebde2bbfa6021de146c502124da7975.zip
Utilize `Result::unwrap_err` in more places.
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/mpsc/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs
index dbcc2bc95bc..63b659d8db3 100644
--- a/src/libstd/sync/mpsc/mod.rs
+++ b/src/libstd/sync/mpsc/mod.rs
@@ -535,7 +535,7 @@ impl<T> Sender<T> {
     ///
     /// // This send will fail because the receiver is gone
     /// drop(rx);
-    /// assert_eq!(tx.send(1).err().unwrap().0, 1);
+    /// assert_eq!(tx.send(1).unwrap_err().0, 1);
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn send(&self, t: T) -> Result<(), SendError<T>> {