about summary refs log tree commit diff
path: root/src/libcore/iter
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2019-06-28 14:01:58 +0200
committerGitHub <noreply@github.com>2019-06-28 14:01:58 +0200
commit643ae635e971c83e7b1aa58ef7a1484752cad55b (patch)
tree213b8b9f7a3e22e9c0c999062e8809a709d56843 /src/libcore/iter
parent8ebd67e4ee394cad9441a801f2022724ae7e07db (diff)
downloadrust-643ae635e971c83e7b1aa58ef7a1484752cad55b.tar.gz
rust-643ae635e971c83e7b1aa58ef7a1484752cad55b.zip
doc(libcore) Fix CS
A small PR to fix a small CS typo in `iter/traits/collect.rs`.
Diffstat (limited to 'src/libcore/iter')
-rw-r--r--src/libcore/iter/traits/collect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter/traits/collect.rs b/src/libcore/iter/traits/collect.rs
index cd61ab5c552..1865160bc3c 100644
--- a/src/libcore/iter/traits/collect.rs
+++ b/src/libcore/iter/traits/collect.rs
@@ -196,7 +196,7 @@ pub trait FromIterator<A>: Sized {
 /// ```rust
 /// fn collect_as_strings<T>(collection: T) -> Vec<String>
 ///     where T: IntoIterator,
-///           T::Item : std::fmt::Debug,
+///           T::Item: std::fmt::Debug,
 /// {
 ///     collection
 ///         .into_iter()