Skip to content

Commit d1e282d

Browse files
Remove ID from "The context as a weak map" heading (#133)
* Remove ID from "The context as a weak map" heading Github's Markdown renderer does not seem to support heading IDs. * Update link
1 parent 9a04bcd commit d1e282d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MEMORY-MANAGEMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ running `asyncVar.run(value, callback)` will:
1212
1. Create a new context which is a copy of the current context, except that
1313
`asyncVar` maps to `value`. The reference to `value` in the context is
1414
strongly held (not a weak reference), but see the
15-
[weak map section](#weak-maps) below.
15+
[weak map section](#the-context-as-a-weak-map) below.
1616
2. Set that new context as the current context.
1717
3. Run the callback.
1818
4. Restore the current context to the value it had before step 2.
@@ -77,7 +77,7 @@ only keeps the context referenced until the rAF callback is called. However, if
7777
the callback recursively calls `requestAnimationFrame`, which is often the case,
7878
the context is propagated with the callback in the recursion.
7979

80-
## The context as a weak map {#weak-maps}
80+
## The context as a weak map
8181

8282
Values associated to an `AsyncContext.Variable` must be strongly held (not weak
8383
references) because you can do `asyncVar.get()` inside that context and get the

0 commit comments

Comments
 (0)