Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pages/docs/manual/latest/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ canonical: "/docs/manual/latest/overview"
| `myArray[1] = 10` | Same |
| `[1, "Bob", true]` | `(1, "Bob", true)` \* |

\* Heterogenous arrays in JS are disallowed for us. Use tuple instead.
\* ReScript does not have heterogenous arrays. Use tuples or [Untagged Variants](variant#untagged-variants) instead.

### Null

Expand All @@ -108,7 +108,7 @@ canonical: "/docs/manual/latest/overview"
| `async (arg) => {...}` | Same |
| `async function named(arg) {...}` | `let named = async (arg) => {...}` |
| `await somePromise` | Same |
| `async (arg): Promise<string> => {...}` | `async (): string => {...}` (note the return type)|
| `async (arg): Promise<string> => {...}` | `async (arg): string => {...}` (note the return type)|

### Blocks

Expand Down Expand Up @@ -187,7 +187,7 @@ canonical: "/docs/manual/latest/overview"
| JavaScript | ReScript |
| ----------------------------------------------- | ------------------------------------------ |
| `throw new SomeError(...)` | `raise(SomeError(...))` |
| `try {a} catch (Err) {...} finally {...}` | `try a catch { \| Err => ...}` \* |
| `try {a} catch (err) {...} finally {...}` | `try a catch { \| SomeError(err) => ...}` \* |

\* No finally.

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/manual/latest/try.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ canonical: "/docs/manual/latest/try"

## Try Online

Our [Playground](/try) lets you try ReScript online, and comes with [ReScript-React](/docs/react/latest/introduction) and the new [ReScript-Core](https://github.com/rescript-association/rescript-core) standard library preinstalled.
Our [Playground](/try) lets you try ReScript online, and comes with the [ReScript React bindings](/docs/react/latest/introduction) and the new [ReScript Core](https://github.com/rescript-association/rescript-core) standard library preinstalled.