about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-20 06:54:17 +0000
committerbors <bors@rust-lang.org>2018-06-20 06:54:17 +0000
commitcca43a7f977963ee497ca091fbdf3cea95abdf47 (patch)
tree1ebb0b8f78577e9d181237951c7c0e43cba0c586 /src/libstd
parent90c921ed472fe9e68b3514ac81fb74fc40c56860 (diff)
parent0b9c686b479ce337581ba9773481ada8dd8f91d6 (diff)
downloadrust-cca43a7f977963ee497ca091fbdf3cea95abdf47.tar.gz
rust-cca43a7f977963ee497ca091fbdf3cea95abdf47.zip
Auto merge of #51644 - Sgeo:patch-1, r=rkruppe
Remove erroneous example of main as a non-Result function.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index eba4e9fe703..2b4644bd013 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -147,7 +147,7 @@
 //! ```
 //!
 //! Note that you cannot use the [`?` operator] in functions that do not return
-//! a [`Result<T, E>`][`Result`] (e.g. `main`). Instead, you can call [`.unwrap()`]
+//! a [`Result<T, E>`][`Result`]. Instead, you can call [`.unwrap()`]
 //! or `match` on the return value to catch any possible errors:
 //!
 //! ```no_run