From 0b9c686b479ce337581ba9773481ada8dd8f91d6 Mon Sep 17 00:00:00 2001 From: Sgeo Date: Tue, 19 Jun 2018 18:32:44 -0400 Subject: [PATCH] Remove erroneous example of main as a non-Result function. --- src/libstd/io/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index eba4e9fe70368..2b4644bd013f2 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`][`Result`] (e.g. `main`). Instead, you can call [`.unwrap()`] +//! a [`Result`][`Result`]. Instead, you can call [`.unwrap()`] //! or `match` on the return value to catch any possible errors: //! //! ```no_run