Skip to content

Commit

Permalink
Guide: drop :d formatting where unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
chastell committed Oct 25, 2014
1 parent a34b8de commit 019a982
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/doc/guide.md
Expand Up @@ -1130,12 +1130,12 @@ fn main() {
let y = Missing;
match x {
Value(n) => println!("x is {:d}", n),
Value(n) => println!("x is {}", n),
Missing => println!("x is missing!"),
}
match y {
Value(n) => println!("y is {:d}", n),
Value(n) => println!("y is {}", n),
Missing => println!("y is missing!"),
}
}
Expand Down Expand Up @@ -1301,7 +1301,7 @@ Instead, it looks like this:

```{rust}
for x in range(0i, 10i) {
println!("{:d}", x);
println!("{}", x);
}
```

Expand Down Expand Up @@ -1408,7 +1408,7 @@ iteration: This will only print the odd numbers:
for x in range(0i, 10i) {
if x % 2 == 0 { continue; }
println!("{:d}", x);
println!("{}", x);
}
```

Expand Down Expand Up @@ -1677,12 +1677,12 @@ fn main() {
let y = Missing;
match x {
Value(n) => println!("x is {:d}", n),
Value(n) => println!("x is {}", n),
Missing => println!("x is missing!"),
}
match y {
Value(n) => println!("y is {:d}", n),
Value(n) => println!("y is {}", n),
Missing => println!("y is missing!"),
}
}
Expand Down Expand Up @@ -4217,7 +4217,7 @@ Remember Rust's `for` loop? Here's an example:

```{rust}
for x in range(0i, 10i) {
println!("{:d}", x);
println!("{}", x);
}
```

Expand Down

0 comments on commit 019a982

Please sign in to comment.