/// assert_eq!(6, doubled[2]);
/// ```
///
- /// Using the 'turbofish' instead of annotationg `doubled`:
+ /// Using the 'turbofish' instead of annotating `doubled`:
///
/// ```
/// let a = [1, 2, 3];
/// `true`, then so does `all()`. If any of them return `false`, it
/// returns `false`.
///
- /// `all()` is short-circuting; in other words, it will stop processing
+ /// `all()` is short-circuiting; in other words, it will stop processing
/// as soon as it finds a `false`, given that no matter what else happens,
/// the result will also be `false`.
///
/// `true`, then so does `any()`. If they all return `false`, it
/// returns `false`.
///
- /// `any()` is short-circuting; in other words, it will stop processing
+ /// `any()` is short-circuiting; in other words, it will stop processing
/// as soon as it finds a `true`, given that no matter what else happens,
/// the result will also be `true`.
///
/// `true`, then `find()` returns `Some(element)`. If they all return
/// `false`, it returns `None`.
///
- /// `find()` is short-circuting; in other words, it will stop processing
+ /// `find()` is short-circuiting; in other words, it will stop processing
/// as soon as the closure returns `true`.
///
/// Because `find()` takes a reference, and many iterators iterate over
/// returns `true`, then `position()` returns `Some(index)`. If all of
/// them return `false`, it returns `None`.
///
- /// `position()` is short-circuting; in other words, it will stop
+ /// `position()` is short-circuiting; in other words, it will stop
/// processing as soon as it finds a `true`.
///
/// # Overflow Behavior
/// and if one of them returns `true`, then `rposition()` returns
/// `Some(index)`. If all of them return `false`, it returns `None`.
///
- /// `rposition()` is short-circuting; in other words, it will stop
+ /// `rposition()` is short-circuiting; in other words, it will stop
/// processing as soon as it finds a `true`.
///
/// # Examples
(ts, us)
}
- /// Creates an iterator which clone()s all of its elements.
+ /// Creates an iterator which `clone()`s all of its elements.
///
/// This is useful when you have an iterator over `&T`, but you need an
/// iterator over `T`.