You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-16 22:27:34 +02:00
committed by
GitHub
parent
b8b274165c
commit
0022898ada
@ -1,6 +1,6 @@
|
|||||||
# Pattern Matching
|
# Pattern Matching
|
||||||
|
|
||||||
The `match` keyword let you match a value against one or more _patterns_. The
|
The `match` keyword lets you match a value against one or more _patterns_. The
|
||||||
comparisons are done from top to bottom and the first match wins.
|
comparisons are done from top to bottom and the first match wins.
|
||||||
|
|
||||||
The patterns can be simple values, similarly to `switch` in C and C++:
|
The patterns can be simple values, similarly to `switch` in C and C++:
|
||||||
|
Reference in New Issue
Block a user