Skip to content

Commit ad26826

Browse files
committed
1 parent f113c1e commit ad26826

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

1.9/ja/book/if.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Rustにおける `if` の扱いは さほど複雑ではありませんが、伝
2020
let x = 5;
2121

2222
if x == 5 {
23+
# // println!("x is five!");
2324
println!("x は 5 です!");
2425
}
2526
```
@@ -37,8 +38,10 @@ if x == 5 {
3738
let x = 5;
3839

3940
if x == 5 {
41+
# // println!("x is five!");
4042
println!("x は 5 です!");
4143
} else {
44+
# // println!("x is not five :(");
4245
println!("x は 5 ではありません :(");
4346
}
4447
```
@@ -50,10 +53,13 @@ if x == 5 {
5053
let x = 5;
5154

5255
if x == 5 {
56+
# // println!("x is five!");
5357
println!("x は 5 です!");
5458
} else if x == 6 {
59+
# // println!("x is six!");
5560
println!("x は 6 です!");
5661
} else {
62+
# // println!("x is not five or six :(");
5763
println!("x は 5 でも 6 でもありません :(");
5864
}
5965
```

0 commit comments

Comments
 (0)