Skip to content

Commit

Permalink
Update link
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Dec 4, 2024
1 parent 6603c0a commit b9c7e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/md/writing-motoko/pattern-matching.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ These blocks allow for safe unwrapping of optional values using a postfix `!` op
Each use of `!` within the block is equivalent to a switch statement on an option, but with an added benefit: if `!` is applied to a `null` value, the entire block immediately abandons execution and returns `null`.
This short-circuiting behavior simplifies the handling of multiple optional values in a more concise and readable manner.

For an example, see [option blocks and null breaks](control-flow#option-blocks-and-null-breaks).
For an example, see [option blocks and null breaks](./control-flow#option-blocks-and-null-breaks).

<img src="https://github.com/user-attachments/assets/844ca364-4d71-42b3-aaec-4a6c3509ee2e" alt="Logo" width="150" height="150" />

0 comments on commit b9c7e37

Please sign in to comment.