Skip to content

Commit 53d5082

Browse files
authored
requested changes
1 parent 4dc1225 commit 53d5082

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/io/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@
144144
//! # Ok(())
145145
//! # }
146146
//! ```
147-
//! Note that you cannot use the `?` operator in functions that do not return a `Result` (e.g. `main()`).
147+
//!
148+
//! Note that you cannot use the `?` operator in functions that do not return a `Result<T, E>` (e.g. `main`).
148149
//! Instead, you can `match` on the return value to catch any possible errors:
149150
//!
150151
//! ```

0 commit comments

Comments
 (0)