mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
remove an infinite loop
This commit is contained in:
parent
b9b2059e84
commit
6766113c87
@ -31,7 +31,7 @@ declare_lint! {
|
||||
/// ```rust
|
||||
/// # let opt = Some(1);
|
||||
/// # let res: Result<i32, std::io::Error> = Ok(1);
|
||||
/// # let recv = || Some(1);
|
||||
/// # let recv = || None::<i32>;
|
||||
/// for x in opt { /* ... */}
|
||||
/// for x in res { /* ... */ }
|
||||
/// for x in recv() { /* ... */ }
|
||||
@ -41,7 +41,7 @@ declare_lint! {
|
||||
/// ```rust
|
||||
/// # let opt = Some(1);
|
||||
/// # let res: Result<i32, std::io::Error> = Ok(1);
|
||||
/// # let recv = || Some(1);
|
||||
/// # let recv = || None::<i32>;
|
||||
/// if let Some(x) = opt { /* ... */}
|
||||
/// if let Ok(x) = res { /* ... */ }
|
||||
/// while let Some(x) = recv() { /* ... */ }
|
||||
|
Loading…
Reference in New Issue
Block a user