From e046a7af49d37b0179078c83387925f8abc2555f Mon Sep 17 00:00:00 2001 From: Jens Hausdorf Date: Thu, 15 Aug 2019 22:16:59 +0200 Subject: [PATCH] Fix typo in DoubleEndedIterator::nth_back doc --- src/libcore/iter/traits/double_ended.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/iter/traits/double_ended.rs b/src/libcore/iter/traits/double_ended.rs index 8e5bc9b664cf0..006b243ca42aa 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