Skip to content

Commit 595a34d

Browse files
authored
Fix WeakKeyMap code example (#56)
The code block used `ObjectSpace::WeekMap` rather than the intended `ObjectSpace::WeakKeyMap`.
1 parent fc34375 commit 595a34d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_src/3.3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ A new "weak map" concept implementation. Unlike `ObjectSpace::WeakMap`, it compa
421421
* **Documentation:** [ObjectSpace::WeakKeyMap](https://docs.ruby-lang.org/en/master/ObjectSpace/WeakKeyMap.html)
422422
* **Code:**
423423
```ruby
424-
map = ObjectSpace::WeekMap.new
424+
map = ObjectSpace::WeakKeyMap.new
425425

426426
key = "foo"
427427
map[key] = true

0 commit comments

Comments
 (0)