Skip to content

Commit 5f6a1c3

Browse files
authored
Fix typo in pages/docs/manual/latest/let-binding.mdx: %private -> %%private (#466)
1 parent b4facbb commit 5f6a1c3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pages/docs/manual/latest/let-binding.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ If you need _real_ mutation, e.g. passing a value around, have it modified by ma
150150

151151
Private let bindings are introduced in the release [7.2](https://rescript-lang.org/blog/bucklescript-release-7-2).
152152

153-
In the module system, everything is public by default,
154-
the only way to hide some values is by providing a separate signature to
153+
In the module system, everything is public by default,
154+
the only way to hide some values is by providing a separate signature to
155155
list public fields and their types:
156156

157157
```res
@@ -162,7 +162,7 @@ module A: {
162162
let b = 4
163163
}
164164
```
165-
`%private` gives you an option to mark private fields directly
165+
`%%private` gives you an option to mark private fields directly
166166

167167
```res
168168
module A = {
@@ -171,15 +171,15 @@ module A = {
171171
}
172172
```
173173

174-
`%private` also applies to file level modules, so in some cases,
174+
`%%private` also applies to file level modules, so in some cases,
175175
users do not need to provide a separate interface file just to hide some particular values.
176176

177-
Note interface files are still recommended as a general best practice since they give you better
178-
separate compilation units and also they're better for documentation.
177+
Note interface files are still recommended as a general best practice since they give you better
178+
separate compilation units and also they're better for documentation.
179179

180-
Still, `%private` is useful in the following scenarios:
180+
Still, `%%private` is useful in the following scenarios:
181181

182182
- Code generators. Some code generators want to hide some values but it is sometimes very hard or time consuming for code generators to synthesize the types for public fields.
183183

184-
- Quick prototyping. During prototyping, we still want to hide some values, but the interface file is not stable yet, `%private` provide you such convenience.
184+
- Quick prototyping. During prototyping, we still want to hide some values, but the interface file is not stable yet, `%%private` provide you such convenience.
185185

0 commit comments

Comments
 (0)