]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/fmt.rs
Merge pull request #20674 from jbcrail/fix-misspelled-comments
[rust.git] / src / libstd / fmt.rs
index d014f67172ce7279fde695f253420619224ff636..1623b6452b7168ec977063c10ba85daa605db021 100644 (file)
 //! ```
 //!
 //! This is invalid because the first argument is both referred to as a
-//! hexidecimal as well as an
+//! hexadecimal as well as an
 //! octal.
 //!
 //! There are various parameters which do require a particular type, however.
 //! Some examples of the output from both traits:
 //!
 //! ```
-//! assert_eq(format!("{} {:?}", 3i32, 4i32), "3 4i32");
-//! assert_eq(format!("{} {:?}", 'a', 'b'), "a 'b'");
-//! assert_eq(format!("{} {:?}", "foo\n", "bar\n"), "foo\n \"bar\\n\"");
+//! assert_eq!(format!("{} {:?}", 3i32, 4i32), "3 4i32");
+//! assert_eq!(format!("{} {:?}", 'a', 'b'), "a 'b'");
+//! assert_eq!(format!("{} {:?}", "foo\n", "bar\n"), "foo\n \"bar\\n\"");
 //! ```
 //!
 //! ### Related macros