[DOC] Fix typos in ObjectSpace::WeakMap docs
The value of variable key2 should be "bar". This way, when nil is assigned to val1 and garbage collection occurs, the output of m.keys will then be ["bar"].
This commit is contained in:
parent
4dae4c6858
commit
b51e1c07d8
Notes:
git
2025-05-14 12:41:59 +00:00
Merged: https://github.com/ruby/ruby/pull/11442 Merged-By: nobu <nobu@ruby-lang.org>