Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify type suffixing with example #1312

Merged
merged 1 commit into from
Mar 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/hello/print.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down