about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-05-07 15:35:17 -0400
committerSteve Klabnik <steve@steveklabnik.com>2016-05-07 15:35:17 -0400
commite09ad1deb7271a8bbc51612f516ea68bba1a7afd (patch)
treec8c3d419cab8d483eddfd194ff364588964a7fb8 /src/libcore
parent769ec1e743af4803116cce92d2b1df42a741ce0b (diff)
parent16219deb5c87bcc85f4c28dff7d83705abbcfe19 (diff)
downloadrust-e09ad1deb7271a8bbc51612f516ea68bba1a7afd.tar.gz
rust-e09ad1deb7271a8bbc51612f516ea68bba1a7afd.zip
Rollup merge of #33409 - kindlychung:patch-2, r=steveklabnik
errors in the doc
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/iter/iterator.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs
index 2033ae58d38..b80f77c0d25 100644
--- a/src/libcore/iter/iterator.rs
+++ b/src/libcore/iter/iterator.rs
@@ -214,7 +214,7 @@ pub trait Iterator {
     /// Like most indexing operations, the count starts from zero, so `nth(0)`
     /// returns the first value, `nth(1)` the second, and so on.
     ///
-    /// `nth()` will return `None` if `n` is larger than the length of the
+    /// `nth()` will return `None` if `n` is greater than or equal to the length of the
     /// iterator.
     ///
     /// # Examples
@@ -237,7 +237,7 @@ pub trait Iterator {
     /// assert_eq!(iter.nth(1), None);
     /// ```
     ///
-    /// Returning `None` if there are less than `n` elements:
+    /// Returning `None` if there are less than `n + 1` elements:
     ///
     /// ```
     /// let a = [1, 2, 3];