[DOC] Fix typos in WeakMap docs
This commit is contained in:
parent
1df1edc080
commit
88d74a4848
@ -985,7 +985,7 @@ wkmap_inspect(VALUE self)
|
|||||||
*
|
*
|
||||||
* Keys in the map are compared by identity.
|
* Keys in the map are compared by identity.
|
||||||
*
|
*
|
||||||
* m = ObjectSpace::WeekMap.new
|
* m = ObjectSpace::WeakMap.new
|
||||||
* key1 = "foo"
|
* key1 = "foo"
|
||||||
* val1 = Object.new
|
* val1 = Object.new
|
||||||
* m[key1] = val1
|
* m[key1] = val1
|
||||||
@ -1041,13 +1041,13 @@ wkmap_inspect(VALUE self)
|
|||||||
*
|
*
|
||||||
* val = nil
|
* val = nil
|
||||||
* GC.start
|
* 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.
|
* # garbage-collected.
|
||||||
* map["name"] #=> 2023-12-07 00:00:00 +0200
|
* map["name"] #=> 2023-12-07 00:00:00 +0200
|
||||||
*
|
*
|
||||||
* key = nil
|
* key = nil
|
||||||
* GC.start
|
* 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.
|
* # garbage-collected.
|
||||||
* map["name"] #=> nil
|
* map["name"] #=> nil
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user