Remove erroneous example of main as a non-Result function.
This commit is contained in:
@@ -147,7 +147,7 @@
|
|||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! Note that you cannot use the [`?` operator] in functions that do not return
|
//! 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:
|
//! or `match` on the return value to catch any possible errors:
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
|
|||||||
Reference in New Issue
Block a user