Skip to content

Commit 43b6773

Browse files
Fix remaining test
1 parent c3fb880 commit 43b6773

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,10 @@ Here's a real-world scenario that'd be a headache to code in other languages. Gi
211211
```res prelude
212212
type status = Vacations(int) | Sabbatical(int) | Sick | Present
213213
type reportCard = {passing: bool, gpa: float}
214+
type student = {name: string, status: status, reportCard: reportCard}
214215
type person =
215-
| Teacher({
216-
name: string,
217-
age: int,
218-
})
219-
| Student({
220-
name: string,
221-
status: status,
222-
reportCard: reportCard,
223-
})
216+
| Teacher({name: string, age: int})
217+
| Student(student)
224218
```
225219
```js
226220
// Empty output

0 commit comments

Comments
 (0)