Update README.md

This commit is contained in:
James Zow 2022-05-13 01:17:29 +08:00 committed by GitHub
parent 36dbca6f3c
commit 11b3ced1b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,11 @@
# 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)