Skip to content

Commit e4262e6

Browse files
committed
Misspoke fix
1 parent 113b1a0 commit e4262e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/docs/manual/latest/pattern-matching-destructuring.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ let message = switch person1 {
241241
| Teacher({name: "Mary" | "Joe"}) =>
242242
`Hey, still going to the party on Saturday?`
243243
| Teacher({name}) =>
244-
// this is matched only if `name` isn't "Joe"
244+
// this is matched only if `name` isn't "Mary" or "Joe"
245245
`Hello ${name}.`
246246
| Student({name, reportCard: {passing: true, gpa}}) =>
247247
`Congrats ${name}, nice GPA of ${Js.Float.toString(gpa)} you got there!`

0 commit comments

Comments
 (0)