Skip to content

Commit 362684e

Browse files
Escaping fixes
1 parent 179c984 commit 362684e

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

pages/docs/manual/v10.0.0/api/belt/list.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Collection functions for manipulating the `list` data structures, a singly-linke
1212

1313
</Intro>
1414

15-
## t<'a>
15+
## t\<'a>
1616

1717
```res prelude
1818
type t<'a> = list<'a>
@@ -36,7 +36,7 @@ Belt.List.length(list{1, 2, 3}) // 3
3636
let size: t<'a> => int
3737
```
3838

39-
**See:** list{length}(#length)
39+
**See:** list\{length}(#length)
4040

4141
## head
4242

pages/docs/manual/v10.0.0/build-performance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ We've stress-tested `rescript.exe` on a big project of 10,000 files (2 directori
5050
<!-- TODO: better repro -->
5151

5252
- No-op build of 10k files: `800ms` (the minimum amount of time required to check the mtimes of 10k files).
53-
- Clean build: <3 minutes.
53+
- Clean build: \<3 minutes.
5454
- Incremental build: depends on the number of the dependents of the file. No dependent means `1s`.
5555

5656
### Stability

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ However, if you want to more rigidly bind to the JavaScript library you want, ke
7878

7979
## Performance & Output Readability
8080

81-
`external`s declarations are inlined into their callers during compilation, **and completely disappear from the JS output**. This means any time you use one, you can be sure that you're not incurring extra JavaScript <-> ReScript conversion cost.
81+
`external`s declarations are inlined into their callers during compilation, **and completely disappear from the JS output**. This means any time you use one, you can be sure that you're not incurring extra JavaScript \<-> ReScript conversion cost.
8282

8383
Additionally, no extra ReScript-specific runtime is better for output readability.
8484

pages/docs/manual/v10.0.0/generate-converters-accessors.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ switch fruitFromJs(100) {
161161

162162
### More Safety
163163

164-
Similar to the JS object <-> record deriving, you can hide the fact that the JS enum are ints by using the same `newType` option with `@deriving(jsConverter)`:
164+
Similar to the JS object \<-> record deriving, you can hide the fact that the JS enum are ints by using the same `newType` option with `@deriving(jsConverter)`:
165165

166166
```res
167167
@deriving({jsConverter: newType})

pages/docs/manual/v10.0.0/import-from-export-to-js.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ canonical: "/docs/manual/latest/import-from-export-to-js"
88

99
You've seen how ReScript's idiomatic [Import & Export](import-export.md) works. This section describes how we work with importing stuff from JavaScript and exporting stuff for JavaScript consumption.
1010

11-
**Note**: due to JS ecosystem's module compatibility issues, our advice of keeping your ReScript file's compiled JS output open in a tab applies here **more than ever**, as you don't want to subtly output the wrong JS module import/export code, on top of having to deal with Babel/Webpack/Jest/Node's CommonJS<->ES6 compatibility shims.
11+
**Note**: due to JS ecosystem's module compatibility issues, our advice of keeping your ReScript file's compiled JS output open in a tab applies here **more than ever**, as you don't want to subtly output the wrong JS module import/export code, on top of having to deal with Babel/Webpack/Jest/Node's CommonJS\<->ES6 compatibility shims.
1212

1313
In short: **make sure your bindings below output what you'd have manually written in JS**.
1414

pages/docs/manual/v10.0.0/interop-cheatsheet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is a glossary with examples. All the features are described by later pages.
1010

1111
## List of Decorators
1212

13-
> **Note:** In ReScript <8.3, all our attributes started with the `bs.` prefix. This is no longer needed and our formatter automatically removes them in newer ReScript versions.
13+
> **Note:** In ReScript \<8.3, all our attributes started with the `bs.` prefix. This is no longer needed and our formatter automatically removes them in newer ReScript versions.
1414
1515
<!-- Synced from https://github.com/rescript-lang/syntax/blob/123760c5a264da5288eeee5213ddd25eb86d62fe/src/res_printer.ml#L19-L51 -->
1616

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ canonical: "/docs/manual/latest/overview"
183183
| JavaScript | ReScript |
184184
| ----------------------------------------------- | ------------------------------------------ |
185185
| `throw new SomeError(...)` | `raise(SomeError(...))` |
186-
| `try {a} catch (Err) {...} finally {...}` | <code>try a catch { &#124; Err => ...}</code> \* |
186+
| `try {a} catch (Err) {...} finally {...}` | `try a catch { \| Err => ...}` \* |
187187

188188
\* No finally.
189189

0 commit comments

Comments
 (0)