Skip to content

Commit b8eb91a

Browse files
committed
make std::str link into See also link
also make a drive-by typo fix
1 parent 8010604 commit b8eb91a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/libstd/primitive_docs.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -594,15 +594,13 @@ mod prim_slice { }
594594
//
595595
/// String slices.
596596
///
597+
/// *[See also the `std::str` module](str/index.html).*
598+
///
597599
/// The `str` type, also called a 'string slice', is the most primitive string
598600
/// type. It is usually seen in its borrowed form, `&str`. It is also the type
599601
/// of string literals, `&'static str`.
600602
///
601-
/// Strings slices are always valid UTF-8.
602-
///
603-
/// This documentation describes a number of methods and trait implementations
604-
/// on the `str` type. For technical reasons, there is additional, separate
605-
/// documentation in the [`std::str`](str/index.html) module as well.
603+
/// String slices are always valid UTF-8.
606604
///
607605
/// # Examples
608606
///

0 commit comments

Comments
 (0)