Skip to content

Commit 19724d3

Browse files
libstd: mention ? operator instead of removing try! macro reference
1 parent 53106df commit 19724d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/io/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@
205205
//!
206206
//! Last, but certainly not least, is [`io::Result`]. This type is used
207207
//! as the return type of many `std::io` functions that can cause an error, and
208-
//! can be returned from your own functions as well.
208+
//! can be returned from your own functions as well. Many of the examples in this
209+
//! module use the [`?` operator]:
209210
//!
210211
//! ```
211212
//! use std::io;
@@ -249,6 +250,7 @@
249250
//! [`println!`]: ../macro.println.html
250251
//! [`Lines`]: struct.Lines.html
251252
//! [`io::Result`]: type.Result.html
253+
//! [`?` operator]: ../../book/syntax-index.html
252254
//! [`read()`]: trait.Read.html#tymethod.read
253255
254256
#![stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)