about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorNick Sweeting <git@nicksweeting.com>2017-03-23 13:42:39 -0400
committerGitHub <noreply@github.com>2017-03-23 13:42:39 -0400
commit53d5082a2d08060ebca869cb8ee97c3ed3cf4ce9 (patch)
treeecd7b3eda1d709d1acc027530b3c8799c9b02f01 /src/libstd/io
parent4dc122580714a5f8859e993bf56a7228b0bcd7c1 (diff)
downloadrust-53d5082a2d08060ebca869cb8ee97c3ed3cf4ce9.tar.gz
rust-53d5082a2d08060ebca869cb8ee97c3ed3cf4ce9.zip
requested changes
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/mod.rs3
1 files changed, 2 insertions, 1 deletions
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<T, E>` (e.g. `main`).
 //! Instead, you can `match` on the return value to catch any possible errors:
 //! 
 //! ```