We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e88defe commit 226cb9cCopy full SHA for 226cb9c
src/libcollections/fmt.rs
@@ -527,15 +527,15 @@ use string;
527
/// use std::fmt;
528
///
529
/// let s = fmt::format(format_args!("Hello, {}!", "world"));
530
-/// assert_eq!(s, "Hello, world!".to_string());
+/// assert_eq!(s, "Hello, world!");
531
/// ```
532
533
/// Please note that using [`format!`][format!] might be preferrable.
534
/// Example:
535
536
537
/// let s = format!("Hello, {}!", "world");
538
539
540
541
/// [format!]: ../macro.format!.html
0 commit comments