Skip to content

Commit cca43a7

Browse files
committed
Auto merge of #51644 - Sgeo:patch-1, r=rkruppe
Remove erroneous example of main as a non-Result function.
2 parents 90c921e + 0b9c686 commit cca43a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
//! ```
148148
//!
149149
//! Note that you cannot use the [`?` operator] in functions that do not return
150-
//! a [`Result<T, E>`][`Result`] (e.g. `main`). Instead, you can call [`.unwrap()`]
150+
//! a [`Result<T, E>`][`Result`]. Instead, you can call [`.unwrap()`]
151151
//! or `match` on the return value to catch any possible errors:
152152
//!
153153
//! ```no_run

0 commit comments

Comments
 (0)