]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/rust-by-example/src/hello/print.md
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / rust-by-example / src / hello / print.md
index 20331ef04936a3c9afbbeab0df9dc974bee12804..efedeb79df504574a69b8a007a7f9d7fb9b5221c 100644 (file)
@@ -6,8 +6,8 @@ some of which include:
 * `format!`: write formatted text to [`String`][string]
 * `print!`: same as `format!` but the text is printed to the console (io::stdout).
 * `println!`: same as `print!` but a newline is appended.
-* `eprint!`: same as `format!` but the text is printed to the standard error (io::stderr).
-* `eprintln!`: same as `eprint!`but a newline is appended.
+* `eprint!`: same as `print!` but the text is printed to the standard error (io::stderr).
+* `eprintln!`: same as `eprint!` but a newline is appended.
 
 All parse text in the same fashion. As a plus, Rust checks formatting
 correctness at compile time.