diff options
| author | bors <bors@rust-lang.org> | 2015-04-15 23:09:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-04-15 23:09:02 +0000 |
| commit | abf0548b5caaa389a5b29813132d2cf4c8b0f1ed (patch) | |
| tree | cd34c53e5dcbf9329333642a91d41b5cfda07e26 /src/libcore | |
| parent | 07f807d01f191ced1d7f4857c73fc57fbe31f421 (diff) | |
| parent | 7644ef8c2b165eb7ca247a212ad988401881a734 (diff) | |
| download | rust-abf0548b5caaa389a5b29813132d2cf4c8b0f1ed.tar.gz rust-abf0548b5caaa389a5b29813132d2cf4c8b0f1ed.zip | |
Auto merge of #24481 - steveklabnik:rollup, r=steveklabnik
- Successful merges: #24425, #24435, #24438, #24440, #24449, #24457, #24460, #24465, #24467, #24468, #24471, #24476, #24480 - Failed merges:
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/iter.rs | 7 | ||||
| -rw-r--r-- | src/libcore/ptr.rs | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 4a0706906ee..e44b0d1147c 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -273,8 +273,9 @@ pub trait Iterator { FilterMap { iter: self, f: f } } - /// Creates an iterator that yields a pair of the value returned by this - /// iterator plus the current index of iteration. + /// Creates an iterator that yields pairs `(i, val)` where `i` is the + /// current index of iteration and `val` is the value returned by the + /// iterator. /// /// `enumerate` keeps its count as a `usize`. If you want to count by a /// different sized integer, the `zip` function provides similar @@ -1129,7 +1130,7 @@ pub trait FromIterator<A> { /// Conversion into an `Iterator` /// /// Implementing this trait allows you to use your type with Rust's `for` loop. See -/// the [module level documentation](../index.html) for more details. +/// the [module level documentation](index.html) for more details. #[stable(feature = "rust1", since = "1.0.0")] pub trait IntoIterator { /// The type of the elements being iterated diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 9a165a2e317..0e9570df09d 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -15,9 +15,9 @@ //! Working with unsafe pointers in Rust is uncommon, //! typically limited to a few patterns. //! -//! Use the [`null` function](fn.null.html) to create null pointers, and -//! the `is_null` method of the `*const T` type to check for null. -//! The `*const T` type also defines the `offset` method, for pointer math. +//! Use the `null` function to create null pointers, and the `is_null` method +//! of the `*const T` type to check for null. The `*const T` type also defines +//! the `offset` method, for pointer math. //! //! # Common ways to create unsafe pointers //! |
