Skip to content

Commit 1136cf4

Browse files
committed
upd
1 parent a26c5fe commit 1136cf4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lang-patterns/identifier-pattern.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Identifier pattern
22

3-
An identifier pattern is most commonly used for variable bindings; however it can also be used for pattern matching within algebraic data types, where it can also match parameters or fields using compile-time constants.
3+
An identifier pattern is most commonly used for variable bindings; however it can also be used for pattern matching within algebraic data types by using call-like parentheses, where it can also match parameters or fields using compile-time constants.
44

55
```sx
66
x
7-
Nothing
7+
Nothing()
88
Vector(x, y)
99
Vector(*, y) // skips "x"
1010
Vector({ x, y })

0 commit comments

Comments
 (0)