about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorUtkarsh Kukreti <utkarshkukreti@gmail.com>2016-12-29 14:12:14 +0530
committerUtkarsh Kukreti <utkarshkukreti@gmail.com>2017-01-22 21:07:38 +0530
commit19724d34d2b223f940363cc07aa83a8a530f8093 (patch)
tree1b23649ee2f08e48fd55dbe20b9713d47bf6abf7 /src/libstd
parent53106df8965d4c7f91f5063d60db09e1ffad3c13 (diff)
downloadrust-19724d34d2b223f940363cc07aa83a8a530f8093.tar.gz
rust-19724d34d2b223f940363cc07aa83a8a530f8093.zip
libstd: mention `?` operator instead of removing `try!` macro reference
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index a92b8c1a751..de5fc5bfad1 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -205,7 +205,8 @@
 //!
 //! Last, but certainly not least, is [`io::Result`]. This type is used
 //! as the return type of many `std::io` functions that can cause an error, and
-//! can be returned from your own functions as well.
+//! can be returned from your own functions as well. Many of the examples in this
+//! module use the [`?` operator]:
 //!
 //! ```
 //! use std::io;
@@ -249,6 +250,7 @@
 //! [`println!`]: ../macro.println.html
 //! [`Lines`]: struct.Lines.html
 //! [`io::Result`]: type.Result.html
+//! [`?` operator]: ../../book/syntax-index.html
 //! [`read()`]: trait.Read.html#tymethod.read
 
 #![stable(feature = "rust1", since = "1.0.0")]