about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-16 08:26:42 +0200
committerGitHub <noreply@github.com>2019-08-16 08:26:42 +0200
commit0bd3a852557c1e52c4c38207891e5230bfa62cdb (patch)
tree3950734898164dfdf746e2fc3d0951dbb1e0b6cc
parent8958e506183588f0bf1486c38b063259fa9ec577 (diff)
parente046a7af49d37b0179078c83387925f8abc2555f (diff)
downloadrust-0bd3a852557c1e52c4c38207891e5230bfa62cdb.tar.gz
rust-0bd3a852557c1e52c4c38207891e5230bfa62cdb.zip
Rollup merge of #63615 - jens1o:patch-1, r=jonas-schievink
Fix typo in DoubleEndedIterator::nth_back doc
-rw-r--r--src/libcore/iter/traits/double_ended.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter/traits/double_ended.rs b/src/libcore/iter/traits/double_ended.rs
index 8e5bc9b664c..006b243ca42 100644
--- a/src/libcore/iter/traits/double_ended.rs
+++ b/src/libcore/iter/traits/double_ended.rs
@@ -69,7 +69,7 @@ pub trait DoubleEndedIterator: Iterator {
     /// Returns the `n`th element from the end of the iterator.
     ///
     /// This is essentially the reversed version of [`nth`]. Although like most indexing
-    /// operations, the count starts from zero, so `nth_back(0)` returns the first value fro
+    /// operations, the count starts from zero, so `nth_back(0)` returns the first value from
     /// the end, `nth_back(1)` the second, and so on.
     ///
     /// Note that all elements between the end and the returned element will be