mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-03 01:56:12 +02:00
parent
b8b274165c
commit
0022898ada
@ -1,6 +1,6 @@
|
||||
# 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.
|
||||
|
||||
The patterns can be simple values, similarly to `switch` in C and C++:
|
||||
|
Loading…
x
Reference in New Issue
Block a user