Skip to content

Commit 17b4884

Browse files
committed
Modify Chars' description
1 parent 41e0498 commit 17b4884

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/libcore/str/mod.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,15 @@ impl fmt::Display for Utf8Error {
369369
Section: Iterators
370370
*/
371371

372-
/// Iterator for the char (representing *Unicode Scalar Values*) of a string.
372+
/// An iterator over the [`char`]s of a string slice.
373373
///
374-
/// Created with the method [`chars`].
374+
/// [`char`]: ../../std/primitive.char.html
375+
///
376+
/// This struct is created by the [`chars()`] method on [`str`].
377+
/// See its documentation for more.
375378
///
376-
/// [`chars`]: ../../std/primitive.str.html#method.chars
379+
/// [`chars()`]: ../../std/primitive.str.html#method.chars
380+
/// [`str`]: ../../std/primitive.str.html
377381
#[derive(Clone, Debug)]
378382
#[stable(feature = "rust1", since = "1.0.0")]
379383
pub struct Chars<'a> {

0 commit comments

Comments
 (0)