Skip to content

Commit f1b025f

Browse files
Fixes according comments
1 parent 76713c7 commit f1b025f

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

misc_docs/syntax/decorator_uncurried.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ _Available since ReScript `11.0.0`._
1818

1919
### References
2020

21-
- [Uncurried Mode blogpost](blog/uncurried-mode)
22-
- [Build System configuration](docs/manual/latest/build-configuration#uncurried)
21+
- [Uncurried Mode blogpost](/blog/uncurried-mode)
22+
- [Build System configuration](/docs/manual/latest/build-configuration#uncurried)

pages/docs/manual/latest/build-configuration.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ Generating JS files with the `.bs.js` suffix means that, on the JS side, you can
172172
}
173173
```
174174

175+
More details can be found in the [blogpost about "Uncurried Mode"](/blog/uncurried-mode).
176+
175177
## warnings
176178

177179
Selectively turn on/off certain warnings and/or turn them into hard errors. Example:

pages/docs/manual/latest/function.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,11 @@ function callFirst(_param) {
386386

387387
</CodeTab>
388388

389-
## Curried Function
389+
## Partial Application
390390

391-
ReScript's functions are uncurried by default since version 11. If you need to partially apply a function, there is now explicit syntax for it:
391+
**Since 11.0**
392+
393+
To partially apply a function, use the explicit `...` syntax.
392394

393395
<CodeTab labels={["ReScript", "JS Output"]}>
394396
```res

pages/docs/manual/latest/jsx.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ React.createElement(MyComponent, {
167167

168168
### Spread Props
169169

170+
**Since 10.1**
171+
170172
JSX props spread is supported now, but in a stricter way than in JS.
171173

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

pages/docs/manual/latest/promise.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ canonical: "/docs/manual/latest/promise"
1010
1111
## `promise` type
1212

13+
**Since 10.1**
14+
1315
In ReScript, every JS promise is represented with the globally available `promise<'a>` type. For ReScript versions < 10.1, use its original alias `Js.Promise.t<'a>` instead.
1416

1517
Here's a usage example in a function signature:

0 commit comments

Comments
 (0)