Skip to content

Commit 11a421c

Browse files
authored
Merge pull request #569 from rescript-association/fix-optional-records-docs-tests
fix tests by making code blocks examples rather than preludes
2 parents 7b937c3 + ff63fda commit 11a421c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/docs/manual/latest/record.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ ReScript [`v10`](/blog/release-10-0-0#experimental-optional-record-fields) intro
162162

163163
<CodeTab labels={["ReScript", "JS Output"]}>
164164

165-
```res prelude
165+
```res example
166166
type person = {
167167
age: int,
168168
name?: string
@@ -181,7 +181,7 @@ You can omit any optional fields when creating a record. Not setting an optional
181181

182182
<CodeTab labels={["ReScript", "JS Output"]}>
183183

184-
```res prelude
184+
```res example
185185
type person = {
186186
age: int,
187187
name?: string

0 commit comments

Comments
 (0)