File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 22
22
//! you'll see a few different types of I/O throughout the documentation in
23
23
//! this module: [`File`]s, [`TcpStream`]s, and sometimes even [`Vec<T>`]s. For
24
24
//! example, [`Read`] adds a [`read`][`Read::read`] method, which we can use on
25
- //! `File`s:
25
+ //! [ `File`] s:
26
26
//!
27
27
//! ```
28
28
//! use std::io;
146
146
//! # }
147
147
//! ```
148
148
//!
149
- //! Note that you cannot use the `?` operator in functions that do not return
150
- //! a `Result<T, E>` (e.g. `main`). Instead, you can call `.unwrap()` or `match`
151
- //! on the return value to catch any possible errors:
149
+ //! Note that you cannot use the [ `?` operator] in functions that do not return
150
+ //! a [ `Result<T, E>`][`Result`] (e.g. `main`). Instead, you can call [ `.unwrap()`]
151
+ //! or `match` on the return value to catch any possible errors:
152
152
//!
153
153
//! ```
154
154
//! use std::io;
265
265
//! [`io::Result`]: type.Result.html
266
266
//! [`?` operator]: ../../book/first-edition/syntax-index.html
267
267
//! [`Read::read`]: trait.Read.html#tymethod.read
268
+ //! [`Result`]: ../result/enum.Result.html
269
+ //! [`.unwrap()`]: ../result/enum.Result.html#method.unwrap
268
270
269
271
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
270
272
You can’t perform that action at this time.
0 commit comments