Remove erroneous example of main as a non-Result function.

This commit is contained in:
Sgeo
2018-06-19 18:32:44 -04:00
committed by GitHub
parent d692ab406e
commit 0b9c686b47

View File

@@ -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