Skip to content

Commit

Permalink
Add field bindings comment
Browse files Browse the repository at this point in the history
  • Loading branch information
imaqtkatt committed Feb 28, 2024
1 parent 1b57071 commit d646ab0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ match list {
List.nil: None
}

// If we don't provide field bindings, it will implicitly use
// the fields of the declared data type
match list {
List.cons: (Some list.head)
List.nil: None
Expand Down

0 comments on commit d646ab0

Please sign in to comment.