Skip to content

Commit 258a8c1

Browse files
committed
Fix test broken by previous commit
1 parent 79bf029 commit 258a8c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/docs/manual/latest/lazy-values.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you have some expensive computations you'd like to **defer and cache** subseq
1010

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

13-
```res example
13+
```res prelude
1414
// Read the directory, only once
1515
let expensiveFilesRead = lazy({
1616
Js.log("Reading dir")
@@ -60,7 +60,7 @@ The first time `Lazy.force` is called, the expensive computation happens and the
6060

6161
**You can't re-trigger the computation after the first `force` call**. Make sure you only use a lazy value with computations whose results don't change (e.g. an expensive server request whose response is always the same).
6262

63-
Instead of using `Lazy.force`, you can also use [pattern matching](/pattern-matching-destructuring.mdx) to trigger the computation:
63+
Instead of using `Lazy.force`, you can also use [pattern matching](pattern-matching-destructuring.md) to trigger the computation:
6464

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

0 commit comments

Comments
 (0)