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 May 16, 2024
1 parent 2fc5d75 commit c732ebf
Show file tree
Hide file tree
Showing 4 changed files with 581 additions and 2 deletions.
2 changes: 2 additions & 0 deletions external-crates/move/documentation/book/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 external-crates/move/documentation/book/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)
- [Loops](./control-flow/loops.md)
- [Labeled Control FLow](./control-flow/labeled-control-flow.md)
- [Pattern Matching](./control-flow/pattern-matching.md)
Loading

0 comments on commit c732ebf

Please sign in to comment.