Skip to content

Commit 2daa58a

Browse files
authored
Update grammar in WeakMap toy implementation warning (mdn#42170)
### Description This PR adds the missing word "to" and adds a comma to the warning about the toy implementation of WeakMap under [WeakMaps and WeakSets](#weakmaps-and-weaksets). ### Motivation The updated text is more grammatically correct. ### Additional details Documentation-only change; no examples or functionality descriptions were modified. ### Related issues and pull requests None.
1 parent 6167946 commit 2daa58a

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/web/javascript/guide/memory_management

1 file changed

+1
-1
lines changed

files/en-us/web/javascript/guide/memory_management/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ If `key` is stored as an actual reference, it would create a cyclic reference an
212212
As a rough mental model, think of a `WeakMap` as the following implementation:
213213

214214
> [!WARNING]
215-
> This is not a polyfill nor is anywhere close to how it's implemented in the engine (which hooks into the garbage collection mechanism).
215+
> This is not a polyfill, nor is it anywhere close to how it's implemented in the engine (which hooks into the garbage collection mechanism).
216216
217217
```js
218218
class MyWeakMap {

0 commit comments

Comments
 (0)