diff options
| author | bors <bors@rust-lang.org> | 2016-07-19 05:12:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-19 05:12:51 -0700 |
| commit | 27e766d7bc84be992c8ddef710affc92ef4a0adf (patch) | |
| tree | f345cf9cdd68dfc339f34e09b7dd3229d1c7c825 /src/libcore/slice.rs | |
| parent | 92400cf8dcf411ce7e70ab2960639977d46d5b01 (diff) | |
| parent | 88b37b6d9cf8cbe12550c0ac5399e9cf08674ca9 (diff) | |
| download | rust-27e766d7bc84be992c8ddef710affc92ef4a0adf.tar.gz rust-27e766d7bc84be992c8ddef710affc92ef4a0adf.zip | |
Auto merge of #34898 - sanxiyn:rollup, r=sanxiyn
Rollup of 5 pull requests - Successful merges: #34807, #34853, #34875, #34884, #34889 - Failed merges:
Diffstat (limited to 'src/libcore/slice.rs')
| -rw-r--r-- | src/libcore/slice.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index 4f11cac4eb2..d8a11581c3b 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -902,6 +902,8 @@ macro_rules! make_mut_slice { /// Immutable slice iterator /// +/// This struct is created by the [`iter`] method on [slices]. +/// /// # Examples /// /// Basic usage: @@ -915,6 +917,9 @@ macro_rules! make_mut_slice { /// println!("{}", element); /// } /// ``` +/// +/// [`iter`]: ../../std/primitive.slice.html#method.iter +/// [slices]: ../../std/primitive.slice.html #[stable(feature = "rust1", since = "1.0.0")] pub struct Iter<'a, T: 'a> { ptr: *const T, @@ -993,6 +998,8 @@ impl<'a, T> Clone for Iter<'a, T> { /// Mutable slice iterator. /// +/// This struct is created by the [`iter_mut`] method on [slices]. +/// /// # Examples /// /// Basic usage: @@ -1010,6 +1017,9 @@ impl<'a, T> Clone for Iter<'a, T> { /// // We now have "[2, 3, 4]": /// println!("{:?}", slice); /// ``` +/// +/// [`iter_mut`]: ../../std/primitive.slice.html#method.iter_mut +/// [slices]: ../../std/primitive.slice.html #[stable(feature = "rust1", since = "1.0.0")] pub struct IterMut<'a, T: 'a> { ptr: *mut T, |
