We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7b8a65 commit aed1ae4Copy full SHA for aed1ae4
compiler/rustc_lint/src/for_loop_over_fallibles.rs
@@ -31,7 +31,7 @@ declare_lint! {
31
/// ```rust
32
/// # let opt = Some(1);
33
/// # let res: Result<i32, std::io::Error> = Ok(1);
34
- /// # let recv = || Some(1);
+ /// # let recv = || None::<i32>;
35
/// for x in opt { /* ... */}
36
/// for x in res { /* ... */ }
37
/// for x in recv() { /* ... */ }
@@ -41,7 +41,7 @@ declare_lint! {
41
42
43
44
45
/// if let Some(x) = opt { /* ... */}
46
/// if let Ok(x) = res { /* ... */ }
47
/// while let Some(x) = recv() { /* ... */ }
0 commit comments