about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDonnie Bishop <donnie.a.bishop@gmail.com>2017-03-30 15:36:50 -0400
committerDonnie Bishop <donnie.a.bishop@gmail.com>2017-03-30 15:36:50 -0400
commit9d4b486b845c7d04691801f1151219b41b7c327b (patch)
treeb560879d62c3f27aa04d49316d0130fe0a146f91
parent7ae95e548929f4924905b2e8f87f2dd57d8bc887 (diff)
downloadrust-9d4b486b845c7d04691801f1151219b41b7c327b.tar.gz
rust-9d4b486b845c7d04691801f1151219b41b7c327b.zip
Modify Lines' description
-rw-r--r--src/libcore/str/mod.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 857eeb26af0..e995b59a145 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -1161,9 +1161,13 @@ generate_pattern_iterators! {
     delegate double ended;
 }
 
-/// Created with the method [`lines`].
+/// An iterator over the lines of a string, as string slices.
 ///
-/// [`lines`]: ../../std/primitive.str.html#method.lines
+/// This struct is created with the [`lines()`] method on [`str`].
+/// See its documentation for more.
+///
+/// [`lines()`]: ../../std/primitive.str.html#method.lines
+/// [`str`]: ../../std/primitive.str.html
 #[stable(feature = "rust1", since = "1.0.0")]
 #[derive(Clone, Debug)]
 pub struct Lines<'a>(Map<SplitTerminator<'a, char>, LinesAnyMap>);