about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-06-04 08:42:22 +0000
committerbors <bors@rust-lang.org>2015-06-04 08:42:22 +0000
commit0aeb9f6f08c353c71d962d5cc7a231e73040ca3c (patch)
tree37ac7efa631a9ffd2a32c330b3223135d3c711fc /src/libcore
parent80d08a37b6215a59ecce042f36ad446c5357b543 (diff)
parentfd3b6ca508ed99004a11291ef1d2c64104102a41 (diff)
downloadrust-0aeb9f6f08c353c71d962d5cc7a231e73040ca3c.tar.gz
rust-0aeb9f6f08c353c71d962d5cc7a231e73040ca3c.zip
Auto merge of #26002 - Manishearth:rollup, r=Manishearth
- Successful merges: #25900, #25987, #25988, #25990, #25994, #26000
- Failed merges: 
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/result.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs
index e909946ece4..003c4b2b78c 100644
--- a/src/libcore/result.rs
+++ b/src/libcore/result.rs
@@ -223,7 +223,9 @@
 //! }
 //! ```
 //!
-//! `try!` is imported by the prelude, and is available everywhere.
+//! `try!` is imported by the prelude and is available everywhere, but it can only
+//! be used in functions that return `Result` because of the early return of
+//! `Err` that it provides.
 
 #![stable(feature = "rust1", since = "1.0.0")]