Skip to content

Commit fecc9ce

Browse files
authored
Misc doc fixes / improvements (#769)
1 parent 564614d commit fecc9ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pages/docs/manual/latest/overview.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ canonical: "/docs/manual/latest/overview"
8282
| `myArray[1] = 10` | Same |
8383
| `[1, "Bob", true]` | `(1, "Bob", true)` \* |
8484

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

8787
### Null
8888

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

113113
### Blocks
114114

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

192192
\* No finally.
193193

pages/docs/manual/latest/try.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ canonical: "/docs/manual/latest/try"
66

77
## Try Online
88

9-
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.
9+
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.

0 commit comments

Comments
 (0)