From 11b3ced1b7691b361cd9abf32cba9f5ad835f0cb Mon Sep 17 00:00:00 2001 From: James Zow Date: Fri, 13 May 2022 01:17:29 +0800 Subject: [PATCH] Update README.md --- exercises/match/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/exercises/match/README.md b/exercises/match/README.md index d32e4a8b..85614ac4 100644 --- a/exercises/match/README.md +++ b/exercises/match/README.md @@ -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) +