Skip to content

Commit e30a3d4

Browse files
authored
Merge pull request rescript-lang#92 from DZakh-forks/misspoke-fix
A misspoke in the Pattern Matching doc
2 parents 113b1a0 + e4262e6 commit e30a3d4

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)