about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-08-07 21:05:14 +0000
committerbors <bors@rust-lang.org>2017-08-07 21:05:14 +0000
commitcbbe17aa7f13f9568a652c2180de03fa6881b86a (patch)
tree212a7a4c529944b47e9a4706927867c05ce0b98b
parent0188ec6ef8d580f4d07c11ca271d90ec78e6b7a8 (diff)
parentbbdff02f8c6bac42c0488afbcfa9cdf1fbd3d282 (diff)
downloadrust-cbbe17aa7f13f9568a652c2180de03fa6881b86a.tar.gz
rust-cbbe17aa7f13f9568a652c2180de03fa6881b86a.zip
Auto merge of #43695 - mehcode:patch-1, r=QuietMisdreavus
Preface 'cares' with 'only'

Minor doc edit to make it clear that `collect` _only_ needs the collection type and is not just being caring.
-rw-r--r--src/libcore/iter/iterator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs
index 1685dba3c5a..2472efa14b3 100644
--- a/src/libcore/iter/iterator.rs
+++ b/src/libcore/iter/iterator.rs
@@ -1247,7 +1247,7 @@ pub trait Iterator {
     /// assert_eq!(vec![2, 4, 6], doubled);
     /// ```
     ///
-    /// Because `collect()` cares about what you're collecting into, you can
+    /// Because `collect()` only cares about what you're collecting into, you can
     /// still use a partial type hint, `_`, with the turbofish:
     ///
     /// ```