Skip to content

Commit d343457

Browse files
Fix typos
1 parent b14553a commit d343457

11 files changed

+19
-23
lines changed

_blogposts/2023-06-05-first-class-dynamic-import-support.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module LazyTitle = {
9191
let titleJsx = <LazyTitle text="Hello!" />
9292
```
9393

94-
That's all the code we need! The new `<LazyTitle />` component behaves exactly the same as the wrapped `<Title />` component, but will be lazy loaded via React's built in lazy mechanism.
94+
That's all the code we need! The new `<LazyTitle />` component behaves exactly the same as the wrapped `<Title />` component, but will be lazy loaded via React's built-in lazy mechanism.
9595

9696
Needless to say, all the code examples you've seen so far are fully type-safe.
9797

@@ -132,7 +132,6 @@ Feel free to try out our new dynamic import feature with the latest beta release
132132

133133
Please note that this release is only intended for experiments and feedback purposes.
134134

135-
136135
## Conclusion
137136

138137
The most important take away of the new dynamic imports functionality in ReScript is that you'll never need to care about _where_ what you're importing is located on the file system - the compiler already does it for you.

pages/docs/manual/latest/equality-comparison.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ For small objects it can be 2x times faster than alternative deep compare functi
122122

123123
For larger objects instead of using `==` you could manually use a faster alternative such as [fast-deep-compare](https://www.npmjs.com/package/fast-deep-equal), or write a custom comparator function.
124124

125-
[This repo](https://github.com/jderochervlk/rescript-perf) has benchmarks comparing results of different libraries compared to ReScript's built in equality function.
125+
[This repo](https://github.com/jderochervlk/rescript-perf) has benchmarks comparing results of different libraries compared to ReScript's built-in equality function.

pages/docs/manual/latest/promise.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type user = {name: string}
2424
let fetchUser: string => promise<user>
2525
```
2626

27-
To work with promise values (instead of using `async` / `await`) you may want to use the built in `Promise` module.
27+
To work with promise values (instead of using `async` / `await`) you may want to use the built-in `Promise` module.
2828

2929
## Promise
3030

pages/docs/manual/latest/variant.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ Here's a list of all possible things you can unbox:
365365
- `string`: `String(string)`
366366
- `float`: `Float(float)`. Note you can only have one of `float` or `int` because JavaScript only has `number` (not actually `int` and `float` like in ReScript) so we can't disambiguate between `float` and `int` at runtime.
367367
- `int`: `Int(int)`. See note above on `float`.
368-
- `bigint`: `BigInt(int)`. **Since 11.1** This is a distinct type from JavaScripts `number` type so you can use it beside either `float` or `int`.
368+
- `bigint`: `BigInt(int)`. **Since 11.1** This is a distinct type from JavaScript's `number` type so you can use it beside either `float` or `int`.
369369
- `bool`: `Boolean(bool)`
370370
- `array<'value>`: `List(array<string>)`
371371
- `('a, 'b, 'c)`: `Tuple((string, int, bool))`. Any size of tuples works, but you can have only one case of array or tuple in a variant.

pages/docs/manual/v10.0.0/promise.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type user = {name: string}
2424
let fetchUser: string => promise<user>
2525
```
2626

27-
To work with promise values (instead of using `async` / `await`) you may want to use the built in `Js.Promise2` module.
27+
To work with promise values (instead of using `async` / `await`) you may want to use the built-in `Js.Promise2` module.
2828

2929
## Js.Promise2
3030

pages/docs/react/latest/lazy-components.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ module LazyTitle = {
3939
let titleJsx = <LazyTitle text="Hello!" />
4040
```
4141

42-
That's all the code we need! The new `<LazyTitle />` component behaves exactly the same as the wrapped `<Title />` component, but will be lazy loaded via React's built in lazy mechanism.
42+
That's all the code we need! The new `<LazyTitle />` component behaves exactly the same as the wrapped `<Title />` component, but will be lazy loaded via React's built-in lazy mechanism.
4343

4444
> You can read more about `Js.import` and dynamic import in ReScript in [this part of the documentation](/docs/manual/latest/import-from-export-to-js#dynamic-import).

pages/docs/react/latest/migrate-react.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ or, to keep using the legacy `React.createElement` API like with JSX v3:
3434
}
3535
```
3636

37-
3837
### File-level config
3938

4039
The top-level attribute `@@jsxConfig` is used to update the `jsx` config for the rest of the file (or until the next config update). Only the values mentioned are updated, the others are left unchanged.
@@ -73,7 +72,7 @@ JSX v3 is still available with the latest version of compiler and rescript-react
7372
}
7473
```
7574

76-
To build certain dependencies in v3 compatibility mode, whatever the version used in the root project, use `"v3-dependencies"`. The listed dependencies will be built in v3 mode, and in addition `-open ReactV3` is added to the compiler options.
75+
To build certain dependencies in v3 compatibility mode, whatever the version used in the root project, use `"v3-dependencies"`. The listed dependencies will be built-in v3 mode, and in addition `-open ReactV3` is added to the compiler options.
7776

7877
## Migration of v3 components
7978

@@ -230,7 +229,6 @@ module Comp = {
230229
}
231230
```
232231

233-
234232
### Bindings to JS components with optional props
235233

236234
Previously, you could wrap optional props with an explicit `option` when writing bindings to JS components. This approach functioned only due to an implementation detail of the ppx in JSX 3; it's not how to correctly write bindings to a function with optional arguments.

pages/docs/react/v0.11.0/migrate-react.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ JSX v3 is still available with the latest version of compiler and rescript-react
8484
}
8585
```
8686

87-
To build certain dependencies in V3 compatibility mode, whatever the version used in the root project, use `"v3-dependencies"`. The listed dependencies will be built in V3 mode, and in addition `-open ReactV3` is added to the compiler options.
87+
To build certain dependencies in V3 compatibility mode, whatever the version used in the root project, use `"v3-dependencies"`. The listed dependencies will be built-in V3 mode, and in addition `-open ReactV3` is added to the compiler options.
8888

8989
## Migration of V3 components
9090

@@ -241,7 +241,6 @@ module Comp = {
241241
}
242242
```
243243

244-
245244
### Bindings to JS components with optional props
246245

247246
Previously, you could wrap optional props with an explicit `option` when writing bindings to JS components. This approach functioned only due to an implementation detail of the ppx in JSX 3; it's not how to correctly write bindings to a function with optional arguments.

pages/docs/reason-compiler/latest/build-advanced.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ You might use some pre-processor to generate boilerplate code during development
99
- System-dependent, which should be delayed until running on user machines.
1010
- System-independent: lex, yacc, m4, re2c, etc, which can be executed any time.
1111

12-
BS has built in support for [conditional compilation](conditional-compilation.md), which satisfies the first point. This section is about the second point.
12+
BS has built-in support for [conditional compilation](conditional-compilation.md), which satisfies the first point. This section is about the second point.
1313

1414
An example, where bsb uses [ocamlyacc](http://caml.inria.fr/pub/docs/manual-ocaml-4.00/manual026.html):
1515

1616
```json
1717
{
18-
"generators" : [
18+
"generators": [
1919
{
20-
"name" : "ocamlyacc",
20+
"name": "ocamlyacc",
2121
"command": "ocamlyacc $in"
2222
}
2323
],
24-
"sources" : {
25-
"dir" : "src",
26-
"generators" : [
24+
"sources": {
25+
"dir": "src",
26+
"generators": [
2727
{
28-
"name" : "ocamlyacc",
29-
"edge" : ["test.ml", "test.mli", ":", "test.mly"]
28+
"name": "ocamlyacc",
29+
"edge": ["test.ml", "test.mli", ":", "test.mly"]
3030
}
3131
]
3232
}
@@ -41,7 +41,7 @@ When developing a project, `bsb` will track the dependencies between `test.ml` a
4141

4242
```json
4343
{
44-
"cut-generators" : true
44+
"cut-generators": true
4545
}
4646
```
4747

pages/docs/reason-compiler/latest/compiler-architecture-principles.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Source Language
99
v
1010
Surface Syntax Tree
1111
|
12-
| (built in Syntax tree transformation)
12+
| (built-in Syntax tree transformation)
1313
v
1414
Surface Syntax Tree
1515
|

src/SyntaxLookup.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module Category = {
1313
| Decorators => "Decorators"
1414
| Operators => "Operators"
1515
| ExtensionPoints => "Extension Points"
16-
| BuiltInFunctions => "Built In Functions"
16+
| BuiltInFunctions => "Built-In Functions"
1717
| LanguageConstructs => "Language Constructs"
1818
| SpecialValues => "Special Values"
1919
| Other => "Other"

0 commit comments

Comments
 (0)