1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-16 22:27:34 +02:00

Update pattern-matching.md (#1374)

Typo
This commit is contained in:
justanotheranonymoususer
2023-10-18 09:40:13 +03:00
committed by GitHub
parent b8b274165c
commit 0022898ada

View File

@ -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++: