about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-11-10 01:39:23 +0100
committerSteve Klabnik <steve@steveklabnik.com>2015-11-10 01:39:23 +0100
commitabb9c9008fbb253f82dfc0e7c72dcd107e820fb7 (patch)
treeca542e1b09c1a798ab6ff478aaf79f4d4904e140
parent2968dfa28597e50b748b641f9b881c7012b041c6 (diff)
downloadrust-abb9c9008fbb253f82dfc0e7c72dcd107e820fb7.tar.gz
rust-abb9c9008fbb253f82dfc0e7c72dcd107e820fb7.zip
Some cleanup on after #29684
* wrap to 80 cols
* small grammar fix, missing 'the'
-rw-r--r--src/libcore/iter.rs27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs
index da7d673cd96..f8c6e3cfdd7 100644
--- a/src/libcore/iter.rs
+++ b/src/libcore/iter.rs
@@ -371,22 +371,21 @@ pub trait Iterator {
     ///
     /// # Implementation notes
     ///
-    /// It is not enforced that an iterator implementation yields the
-    /// declared number of elements. A buggy iterator may yield less
-    /// than the lower bound or more than the upper bound of elements.
+    /// It is not enforced that an iterator implementation yields the declared
+    /// number of elements. A buggy iterator may yield less than the lower bound
+    /// or more than the upper bound of elements.
     ///
-    /// `size_hint()` is primarily intended to be used for optimizations
-    /// such as reserving space for the elements of the iterator, but
-    /// must not be trusted to e.g. omit bounds checks in unsafe code.
-    /// An incorrect implementation of `size_hint()` should not lead to
-    /// memory safety violations.
+    /// `size_hint()` is primarily intended to be used for optimizations such as
+    /// reserving space for the elements of the iterator, but must not be
+    /// trusted to e.g. omit bounds checks in unsafe code. An incorrect
+    /// implementation of `size_hint()` should not lead to memory safety
+    /// violations.
     ///
-    /// That said, the implementation should provide a correct
-    /// estimation, because otherwise it would be a violation of the
-    /// trait's protocol.
+    /// That said, the implementation should provide a correct estimation,
+    /// because otherwise it would be a violation of the trait's protocol.
     ///
-    /// The default implementation returns `(0, None)` which is correct
-    /// for any iterator.
+    /// The default implementation returns `(0, None)` which is correct for any
+    /// iterator.
     ///
     /// # Examples
     ///
@@ -2750,7 +2749,7 @@ pub trait ExactSizeIterator: Iterator {
     /// implementation, you can do so. See the [trait-level] docs for an
     /// example.
     ///
-    /// This function has the same safety guarantees as [`size_hint()`]
+    /// This function has the same safety guarantees as the [`size_hint()`]
     /// function.
     ///
     /// [trait-level]: trait.ExactSizeIterator.html