Skip to content

Commit 9d4b486

Browse files
committed
Modify Lines' description
1 parent 7ae95e5 commit 9d4b486

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/libcore/str/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,9 +1161,13 @@ generate_pattern_iterators! {
11611161
delegate double ended;
11621162
}
11631163

1164-
/// Created with the method [`lines`].
1164+
/// An iterator over the lines of a string, as string slices.
11651165
///
1166-
/// [`lines`]: ../../std/primitive.str.html#method.lines
1166+
/// This struct is created with the [`lines()`] method on [`str`].
1167+
/// See its documentation for more.
1168+
///
1169+
/// [`lines()`]: ../../std/primitive.str.html#method.lines
1170+
/// [`str`]: ../../std/primitive.str.html
11671171
#[stable(feature = "rust1", since = "1.0.0")]
11681172
#[derive(Clone, Debug)]
11691173
pub struct Lines<'a>(Map<SplitTerminator<'a, char>, LinesAnyMap>);

0 commit comments

Comments
 (0)