From: Nick Sweeting Date: Thu, 23 Mar 2017 17:42:39 +0000 (-0400) Subject: requested changes X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=53d5082a2d08060ebca869cb8ee97c3ed3cf4ce9;p=rust.git requested changes --- diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index dda9d6bca79..60b211a746f 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -144,7 +144,8 @@ //! # Ok(()) //! # } //! ``` -//! Note that you cannot use the `?` operator in functions that do not return a `Result` (e.g. `main()`). +//! +//! Note that you cannot use the `?` operator in functions that do not return a `Result` (e.g. `main`). //! Instead, you can `match` on the return value to catch any possible errors: //! //! ```