Skip to content

Commit 5d669ad

Browse files
Merge pull request #54 from roopeshor/patch-1
fix(docs): fixed typo in ch06-enums-and-pattern-matching
2 parents 6ed2796 + e5db46b commit 5d669ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎c-cpp-book/src/ch06-enums-and-pattern-matching.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn main() {
2626
- The Rust ```match``` is the equivalent of the C "switch" on steroids
2727
- ```match``` can be used for pattern matching on simple data types, ```struct```, ```enum```
2828
- The ```match``` statement must be exhaustive, i.e., they must cover all possible cases for a given ```type```. The ```_``` can be used a wildcard for the "all else" case
29-
- ```match``` can yield a value, but all arms (```=>```) of must return a value of the same type
29+
- ```match``` can yield a value, but all arms (```=>```) must return a value of the same type
3030

3131
```rust
3232
fn main() {

0 commit comments

Comments
 (0)