about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-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:
 //! 
 //! ```