remove an infinite loop
This commit is contained in:
parent
b9b2059e84
commit
6766113c87
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue