diff options
author | Daniel John Keefer <xxkeefer.code@gmail.com> | 2024-05-22 19:49:55 +1000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-06-12 14:06:18 +0100 |
commit | 2246bbb7a8a5746c07799bd754a8f22ad358d8d1 (patch) | |
tree | 34470e59f3fd5bf309956eb18374d0140c455197 | |
parent | a69f26d5271ff42ed1a8938644efcdc1d2306890 (diff) | |
download | tour-2246bbb7a8a5746c07799bd754a8f22ad358d8d1.tar.gz tour-2246bbb7a8a5746c07799bd754a8f22ad358d8d1.zip |
refactor: Apply suggestions from code review
Co-authored-by: Louis Pilfold <louis@lpil.uk>
-rw-r--r-- | src/content/chapter3_data_types/lesson04_record_pattern_matching/en.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/chapter3_data_types/lesson04_record_pattern_matching/en.html b/src/content/chapter3_data_types/lesson04_record_pattern_matching/en.html index 2c0c2fa..3c09080 100644 --- a/src/content/chapter3_data_types/lesson04_record_pattern_matching/en.html +++ b/src/content/chapter3_data_types/lesson04_record_pattern_matching/en.html @@ -1,10 +1,10 @@ <p> It is possible to pattern match on a record, this allows for the extraction - of multiple field values from a record into distinct variables in a concise and efficient way. + of multiple field values from a record into distinct variables, similar to matching on a tuple or a list. </p> <p> - the let key word can only match on single variant custom types. For types with more variants - a case statement must be used. + The let key word can only match on single variant custom types. For types with more variants + a case expression must be used. </p> <p> It is possible to use underscore <code>_</code> or the spread syntax <code>..</code> to |