Skip to content

Commit

Permalink
fix |
Browse files Browse the repository at this point in the history
  • Loading branch information
aspeddro committed Aug 3, 2023
1 parent 6bff459 commit 001ee75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pages/docs/manual/v8.0.0/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ canonical: "/docs/manual/latest/overview"
| `"Hello world!"` | Same |
| `'Hello world!'` | Strings must use `"` |
| `"hello " + "world"` | `"hello " ++ "world"` |
| `` `hello ${message}` `` | `{j|Hello $(message)|j}`|
| `` `hello ${message}` `` | `\{j|Hello $(message)|j}`|

### Boolean

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

\* No finally.

Expand Down Expand Up @@ -214,7 +214,7 @@ The last expression of a block delimited by `{}` implicitly returns (including f
Feature | Example | JavaScript Output
--------------------------------|--------------------------------------|----------------------
String | `"Hello"` | `"Hello"`
String Interpolation | `{j|Hello $(message)|j}` | `"Hello " + message`
String Interpolation | `\{j|Hello $(message)|j}` | `"Hello " + message`
Character (disrecommended) | `'x'` | `120` (char code)
Integer | `23`, `-23` | `23`, `-23`
Float | `23.0`, `-23.0` | `23.0`, `-23.0`
Expand Down
2 changes: 1 addition & 1 deletion pages/docs/manual/v9.0.0/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,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 { \| Err => ...}` \* |

\* No finally.

Expand Down

0 comments on commit 001ee75

Please sign in to comment.