diff options
| author | Nick Sweeting <git@nicksweeting.com> | 2017-03-23 13:42:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-23 13:42:39 -0400 |
| commit | 53d5082a2d08060ebca869cb8ee97c3ed3cf4ce9 (patch) | |
| tree | ecd7b3eda1d709d1acc027530b3c8799c9b02f01 /src | |
| parent | 4dc122580714a5f8859e993bf56a7228b0bcd7c1 (diff) | |
| download | rust-53d5082a2d08060ebca869cb8ee97c3ed3cf4ce9.tar.gz rust-53d5082a2d08060ebca869cb8ee97c3ed3cf4ce9.zip | |
requested changes
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/io/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index dda9d6bca79..60b211a746f 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -144,7 +144,8 @@ //! # Ok(()) //! # } //! ``` -//! Note that you cannot use the `?` operator in functions that do not return a `Result` (e.g. `main()`). +//! +//! Note that you cannot use the `?` operator in functions that do not return a `Result<T, E>` (e.g. `main`). //! Instead, you can `match` on the return value to catch any possible errors: //! //! ``` |
