diff options
| author | Kevin Leimkuhler <kevin@kleimkuhler.com> | 2018-10-13 17:26:57 -0700 |
|---|---|---|
| committer | Kevin Leimkuhler <kevin@kleimkuhler.com> | 2019-01-17 22:34:43 -0800 |
| commit | ccc027eff7604bf75f1ad490f415a338e44c1038 (patch) | |
| tree | 65dd686d50e4af2d3fe5ad56cdcee76832ef2184 /src/libcore/iter | |
| parent | ce47dde59f45d55fa27dce9a614d1a972f9d8a4f (diff) | |
| download | rust-ccc027eff7604bf75f1ad490f415a338e44c1038.tar.gz rust-ccc027eff7604bf75f1ad490f415a338e44c1038.zip | |
Improve documentation and slice impl
Diffstat (limited to 'src/libcore/iter')
| -rw-r--r-- | src/libcore/iter/iterator.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs index 67591381fdc..4035ad6b77c 100644 --- a/src/libcore/iter/iterator.rs +++ b/src/libcore/iter/iterator.rs @@ -2640,7 +2640,9 @@ pub trait Iterator { /// /// Instead of using `PartialOrd::partial_cmp`, this function uses the given `compare` /// function to determine the ordering of two elements. Apart from that, it's equivalent to - /// `is_sorted`; see its documentation for more information. + /// [`is_sorted`]; see its documentation for more information. + /// + /// [`is_sorted`]: trait.Iterator.html#method.is_sorted #[unstable(feature = "is_sorted", reason = "new API", issue = "53485")] fn is_sorted_by<F>(mut self, mut compare: F) -> bool where @@ -2666,9 +2668,11 @@ pub trait Iterator { /// function. /// /// Instead of comparing the iterator's elements directly, this function compares the keys of - /// the elements, as determined by `f`. Apart from that, it's equivalent to `is_sorted`; see + /// the elements, as determined by `f`. Apart from that, it's equivalent to [`is_sorted`]; see /// its documentation for more information. /// + /// [`is_sorted`]: trait.Iterator.html#method.is_sorted + /// /// # Examples /// /// ``` |
