mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-07 15:37:39 +00:00
Apply suggestions from review
This commit is contained in:
parent
07cd4c8778
commit
7cf0fe1d02
@ -22,8 +22,8 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
|
|||||||
/// generally, please see the [module-level documentation]. In particular, you
|
/// generally, please see the [module-level documentation]. In particular, you
|
||||||
/// may want to know how to [implement `Iterator`][impl].
|
/// may want to know how to [implement `Iterator`][impl].
|
||||||
///
|
///
|
||||||
/// [module-level documentation]: crate::iter
|
/// [module-level documentation]: self
|
||||||
/// [impl]: crate::iter#implementing-iterator
|
/// [impl]: self#implementing-iterator
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_on_unimplemented(
|
#[rustc_on_unimplemented(
|
||||||
on(
|
on(
|
||||||
@ -107,6 +107,8 @@ pub trait Iterator {
|
|||||||
/// again may or may not eventually start returning [`Some(Item)`] again at some
|
/// again may or may not eventually start returning [`Some(Item)`] again at some
|
||||||
/// point.
|
/// point.
|
||||||
///
|
///
|
||||||
|
/// [`Some(Item)`]: Some
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
@ -447,7 +449,6 @@ pub trait Iterator {
|
|||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`once`]: crate::iter::once
|
|
||||||
/// [`OsStr`]: ../../std/ffi/struct.OsStr.html
|
/// [`OsStr`]: ../../std/ffi/struct.OsStr.html
|
||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
@ -2157,6 +2158,8 @@ pub trait Iterator {
|
|||||||
/// argument is a double reference. You can see this effect in the
|
/// argument is a double reference. You can see this effect in the
|
||||||
/// examples below, with `&&x`.
|
/// examples below, with `&&x`.
|
||||||
///
|
///
|
||||||
|
/// [`Some(element)`]: Some
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
@ -2301,6 +2304,7 @@ pub trait Iterator {
|
|||||||
/// This function might panic if the iterator has more than `usize::MAX`
|
/// This function might panic if the iterator has more than `usize::MAX`
|
||||||
/// non-matching elements.
|
/// non-matching elements.
|
||||||
///
|
///
|
||||||
|
/// [`Some(index)`]: Some
|
||||||
/// [`usize::MAX`]: crate::usize::MAX
|
/// [`usize::MAX`]: crate::usize::MAX
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
@ -2362,6 +2366,8 @@ pub trait Iterator {
|
|||||||
/// `rposition()` is short-circuiting; in other words, it will stop
|
/// `rposition()` is short-circuiting; in other words, it will stop
|
||||||
/// processing as soon as it finds a `true`.
|
/// processing as soon as it finds a `true`.
|
||||||
///
|
///
|
||||||
|
/// [`Some(index)`]: Some
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
|
Loading…
Reference in New Issue
Block a user