]> git.lizzy.rs Git - rust.git/commitdiff
requested changes
authorNick Sweeting <git@nicksweeting.com>
Thu, 23 Mar 2017 17:42:39 +0000 (13:42 -0400)
committerGitHub <noreply@github.com>
Thu, 23 Mar 2017 17:42:39 +0000 (13:42 -0400)
src/libstd/io/mod.rs

index dda9d6bca797766a603215ef600ca746c57f9ddc..60b211a746ff15ec2c590ea63f807abb25e153ae 100644 (file)
 //! # 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<T, E>` (e.g. `main`).
 //! Instead, you can `match` on the return value to catch any possible errors:
 //! 
 //! ```