File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -709,12 +709,19 @@ pub use macros::Debug;
709
709
710
710
/// Format trait for an empty format, `{}`.
711
711
///
712
+ /// Implementing this trait for a type will automatically implement the
713
+ /// [`ToString`][tostring] trait for the type, allowing the usage
714
+ /// of the [`.to_string()`][tostring_function] method. Prefer implementing
715
+ /// the `Display` trait for a type, rather than [`ToString`][tostring].
716
+ ///
712
717
/// `Display` is similar to [`Debug`], but `Display` is for user-facing
713
718
/// output, and so cannot be derived.
714
719
///
715
720
/// For more information on formatters, see [the module-level documentation][module].
716
721
///
717
722
/// [module]: ../../std/fmt/index.html
723
+ /// [tostring]: ../../std/string/trait.ToString.html
724
+ /// [tostring_function]: ../../std/string/trait.ToString.html#tymethod.to_string
718
725
///
719
726
/// # Examples
720
727
///
Original file line number Diff line number Diff line change @@ -2076,7 +2076,7 @@ impl<T> [T] {
2076
2076
SplitN :: new ( self . split ( pred) , n)
2077
2077
}
2078
2078
2079
- /// Returns an iterator over subslices separated by elements that match
2079
+ /// Returns an iterator over mutable subslices separated by elements that match
2080
2080
/// `pred`, limited to returning at most `n` items. The matched element is
2081
2081
/// not contained in the subslices.
2082
2082
///
You can’t perform that action at this time.
0 commit comments