mirror of https://github.com/rust-lang/book
print! for both
This commit is contained in:
parent
3e2e5214f4
commit
e4881ec331
|
@ -483,7 +483,7 @@ arms exhaustiveness anymore when match guard expressions are involved.
|
|||
```rust
|
||||
match Some(100) {
|
||||
Some(_) if true => print!("Got Some"),
|
||||
None => println!("Got None")
|
||||
None => print!("Got None")
|
||||
}
|
||||
```
|
||||
This `match` expression involves compilation error.
|
||||
|
|
Loading…
Reference in New Issue