about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorKaiyin Zhong <kindlychung@gmail.com>2016-05-04 21:50:51 +0200
committerKaiyin Zhong <kindlychung@gmail.com>2016-05-04 21:50:51 +0200
commit2ca31205f3688f452eafccf0337fe381d9db8457 (patch)
tree4449b5ce23c7f4957fd2ebff556892939ead86bd /src/libcore
parent3157691f963a86776cb7e6a7842f566032890aba (diff)
downloadrust-2ca31205f3688f452eafccf0337fe381d9db8457.tar.gz
rust-2ca31205f3688f452eafccf0337fe381d9db8457.zip
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..c13512a399a 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` >= 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];