Skip to content

Commit

Permalink
[move][docs] Add section on pattern matching to Move book
Browse files Browse the repository at this point in the history
  • Loading branch information
tzakian committed Jun 12, 2024
1 parent d4bdbc2 commit 59d4597
Show file tree
Hide file tree
Showing 4 changed files with 623 additions and 2 deletions.
2 changes: 2 additions & 0 deletions reference/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
- [Conditional Expressions](control-flow/conditionals.md)
- [Loops](control-flow/loops.md)
- [Labeled Control FLow](control-flow/labeled-control-flow.md)
- [Patterm Matching](control-flow/pattern-matching.md)
- [Functions](functions.md)
- [Structs](structs.md)
- [Enums](enums.md)
- [Constants](constants.md)
- [Generics](generics.md)
- [Type Abilities](abilities.md)
Expand Down
4 changes: 3 additions & 1 deletion reference/src/control-flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
Move offers multiple constructs for control flow based on
[boolean expressions](./primitive-types/bool.md), including common programming constructs such as
`if` expressions and `while` and `for` loops, along with advanced control flow structures including
labels for loops and escapable named blocks.
labels for loops and escapable named blocks. It also supports more more complex constructs based on
structural pattern matching.

- [Conditional Expressions](./control-flow/conditionals.md)
- [Pattern Matching](./control-flow/pattern-matching.md)
- [Loops](./control-flow/loops.md)
- [Labeled Control FLow](./control-flow/labeled-control-flow.md)
Loading

0 comments on commit 59d4597

Please sign in to comment.