diff options
author | Earlopain <[email protected]> | 2024-05-06 16:15:24 +0200 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-05-06 23:56:01 +0900 |
commit | 88d74a4848998435e4a6d1bf2d70dde3d8996532 (patch) | |
tree | 40fa4248b81c2fccc10e708bfd2532b3aa29ad31 /weakmap.c | |
parent | 1df1edc080031b8f18b41a5a8d308a667ea89fc1 (diff) |
[DOC] Fix typos in WeakMap docs
Diffstat (limited to 'weakmap.c')
-rw-r--r-- | weakmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -985,7 +985,7 @@ wkmap_inspect(VALUE self) * * Keys in the map are compared by identity. * - * m = ObjectSpace::WeekMap.new + * m = ObjectSpace::WeakMap.new * key1 = "foo" * val1 = Object.new * m[key1] = val1 @@ -1041,13 +1041,13 @@ wkmap_inspect(VALUE self) * * val = nil * GC.start - * # There is no more references to `val`, yet the pair isn't + * # There are no more references to `val`, yet the pair isn't * # garbage-collected. * map["name"] #=> 2023-12-07 00:00:00 +0200 * * key = nil * GC.start - * # There is no more references to `key`, key and value are + * # There are no more references to `key`, key and value are * # garbage-collected. * map["name"] #=> nil * |