diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-09 12:50:21 -0700 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-09 14:59:38 -0700 |
| commit | fffaf665f2bdab15c2ea11d9f97df22c401c9f36 (patch) | |
| tree | bd5125394d3c0458a8730fd3b90c5c5a366e390e /src/libstd/sync | |
| parent | c45d4816ca1e53afd57a3140daca7ee46f34672c (diff) | |
| parent | 62b19c627ebde2bbfa6021de146c502124da7975 (diff) | |
| download | rust-fffaf665f2bdab15c2ea11d9f97df22c401c9f36.tar.gz rust-fffaf665f2bdab15c2ea11d9f97df22c401c9f36.zip | |
Rollup merge of #33474 - frewsxcv:unwrap-err, r=alexcrichton
Utilize `Result::unwrap_err` in more places. None
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/mpsc/mod.rs | 2 |
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>> { |
