Skip to content

Commit d5ea84b

Browse files
JiaeKcristianoc
authored andcommitted
Edit let-bindings.mdx
1 parent 1cdd6e8 commit d5ea84b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let message = {
3535
let part2 = "world"
3636
part1 ++ " " ++ part2
3737
}
38-
// `part1` and `part2` not accessible here!
38+
// `part1` and `part2` are not accessible here!
3939
```
4040
```js
4141
var message = "hello world";
@@ -72,7 +72,7 @@ Let bindings are "immutable", aka "cannot change". This helps our type system de
7272

7373
## Binding Shadowing
7474

75-
The above restriction might sound unpractical at first. How would you change a value then? Usually, 2 ways:
75+
The above restriction might sound impractical at first. How would you change a value then? Usually, 2 ways:
7676

7777
The first is to realize that many times, what you want isn't to mutate a variable's value. For example, this JavaScript pattern:
7878

@@ -181,5 +181,5 @@ 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` provides you such convenience.
185185

0 commit comments

Comments
 (0)