mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-10 12:49:18 +00:00
fix error README.md in match
This commit is contained in:
parent
763d502737
commit
aa0b9f8780
@ -1,8 +1,10 @@
|
||||
# Intro
|
||||
# Match
|
||||
|
||||
Rust provides pattern matching via the match keyword, which can be used like a C switch.
|
||||
The first matching arm is evaluated and all possible values must be covered.
|
||||
|
||||
Rust uses the `print!` and `println!` macros to print text to the console.
|
||||
|
||||
## Further information
|
||||
|
||||
- [Hello World](https://doc.rust-lang.org/rust-by-example/hello.html)
|
||||
- [Formatted print](https://doc.rust-lang.org/rust-by-example/hello/print.html)
|
||||
- [Match Destructuring](https://doc.rust-lang.org/stable/rust-by-example/flow_control/match/destructuring.html)
|
||||
- [Match Guards](https://doc.rust-lang.org/stable/rust-by-example/flow_control/match/guard.html)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user