mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-02 23:38:41 +08:00
Show the variable declaration in this example
I think the variable declaration makes this clearer, in case the reader wants to copy-paste and play with it.
This commit is contained in:
parent
30604a5fe8
commit
957eb7e517
@ -154,7 +154,7 @@ list out 0, 2, 4, 6, 8, 9, all the way up through 255? Thankfully, no! We can
|
||||
use a special pattern, `_`:
|
||||
|
||||
```rust
|
||||
# let some_u8_value = 0u8;
|
||||
let some_u8_value = 0u8;
|
||||
match some_u8_value {
|
||||
1 => println!("one"),
|
||||
3 => println!("three"),
|
||||
|
Loading…
Reference in New Issue
Block a user