Auto merge of #51644 - Sgeo:patch-1, r=rkruppe
Remove erroneous example of main as a non-Result function.
This commit is contained in:
commit
cca43a7f97
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue