]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/rust-by-example/src/hello/print.md
New upstream version 1.44.1+dfsg1
[rustc.git] / src / doc / rust-by-example / src / hello / print.md
index 7b1b7ed41e02a1213e141b9c664c1d51b4510228..6efa8eb711241c113b965889a863656335bfd116 100644 (file)
@@ -9,7 +9,7 @@ some of which include:
 * `eprint!`: same as `format!` 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 
+All parse text in the same fashion. As a plus, Rust checks formatting
 correctness at compile time.
 
 ```rust,editable,ignore,mdbook-runnable
@@ -19,7 +19,7 @@ fn main() {
     println!("{} days", 31);
 
     // Without a suffix, 31 becomes an i32. You can change what type 31 is
-    // by providing a suffix.
+    // by providing a suffix. The number 31i64 for example has the type i64.
 
     // There are various optional patterns this works with. Positional
     // arguments can be used.
@@ -80,7 +80,7 @@ Implementing the `fmt::Display` trait automatically implements the
    check the [`std::fmt`][fmt] documentation for setting the number of
    decimals to display)
 
-### See also
+### See also:
 
 [`std::fmt`][fmt], [`macros`][macros], [`struct`][structs],
 and [`traits`][traits]