We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3f2e8 commit bc46e45Copy full SHA for bc46e45
listings/ch13-functional-features/listing-13-19/src/main.rs
@@ -11,7 +11,6 @@ fn main() {
11
process::exit(1);
12
});
13
14
-
15
if let Err(e) = run(config) {
16
eprintln!("Application error: {e}");
17
listings/ch19-patterns-and-matching/listing-19-29/src/main.rs
@@ -7,9 +7,9 @@ fn main() {
7
let msg = Message::Hello { id: 5 };
8
9
match msg {
10
- Message::Hello {
- id: id @ 3..=7,
- } => println!("Found an id in range: {id}"),
+ Message::Hello { id: id @ 3..=7 } => {
+ println!("Found an id in range: {id}")
+ }
Message::Hello { id: 10..=12 } => {
println!("Found an id in another range")
}
0 commit comments