Skip to content

Commit

Permalink
Fix references to ControlFlow in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Aug 24, 2021
1 parent a49e38e commit bc33861
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/core/src/iter/traits/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1957,8 +1957,8 @@ pub trait Iterator {
/// assert_eq!(it.next(), Some(&40));
/// ```
///
/// While you cannot `break` from a closure, the [`crate::ops::ControlFlow`]
/// type allows a similar idea:
/// While you cannot `break` from a closure, the [`ControlFlow`] type allows
/// a similar idea:
///
/// ```
/// use std::ops::ControlFlow;
Expand Down Expand Up @@ -2024,8 +2024,8 @@ pub trait Iterator {
/// assert_eq!(it.next(), Some("stale_bread.json"));
/// ```
///
/// The [`crate::ops::ControlFlow`] type can be used with this method for the
/// situations in which you'd use `break` and `continue` in a normal loop:
/// The [`ControlFlow`] type can be used with this method for the situations
/// in which you'd use `break` and `continue` in a normal loop:
///
/// ```
/// use std::ops::ControlFlow;
Expand Down

0 comments on commit bc33861

Please sign in to comment.