mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-03 07:48:41 +08:00
Ooops spurious square bracket
This commit is contained in:
parent
aeb7274bd0
commit
51b49df791
@ -151,7 +151,7 @@ number is divisible by 3
|
||||
|
||||
When this program executes, it will check each `if` expression in turn and
|
||||
execute the first body for which the condition holds true. Note that even
|
||||
though 6 is divisible by 2 ], we did not see the output `number is divisible by
|
||||
though 6 is divisible by 2, we did not see the output `number is divisible by
|
||||
2`, nor did we see the `number is not divisible by 4, 3, or 2` text from the
|
||||
`else` block. That's because Rust will only execute the block for the first
|
||||
true condition, and once it finds one, it won't even check the rest.
|
||||
|
Loading…
Reference in New Issue
Block a user