summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-09 22:42:20 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-09 22:42:20 +0000
commitda90029db50a7a4f94575b735ed9b9fbca73f874 (patch)
tree193b0160091b10e7538f63b953a457e1585c8dca /lib
parentc2391bde831937860f417e7a3afd62bcc56d238d (diff)
* lib/weakref.rb: [DOC] fix typos by @xaviershay [Fixes GH-439]
https://github.com/ruby/ruby/pull/439 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/weakref.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/weakref.rb b/lib/weakref.rb
index 36cbe3f10f..9a256e9c25 100644
--- a/lib/weakref.rb
+++ b/lib/weakref.rb
@@ -16,7 +16,7 @@ require "delegate"
#
# == Example
#
-# With help from WeakRef, we can implement our own redimentary WeakHash class.
+# With help from WeakRef, we can implement our own rudimentary WeakHash class.
#
# We will call it WeakHash, since it's really just a Hash except all of it's
# keys and values can be garbage collected.
@@ -33,7 +33,7 @@ require "delegate"
# Hash#store to create a new WeakRef object with +key+ and +obj+ parameters
# before passing them as our key-value pair to the hash.
#
-# With this you will have to limit your self to String key's, otherwise you
+# With this you will have to limit your self to String keys, otherwise you
# will get an ArgumentError because WeakRef cannot create a finalizer for a
# Symbol. Symbols are immutable and cannot be garbage collected.
#
@@ -57,10 +57,10 @@ require "delegate"
# puts c.inspect
# #=> WeakRef::RefError: Invalid Reference - probably recycled
#
-# You can see the local variable +omg+ stayed, although it's reference in our
+# You can see the local variable +omg+ stayed, although its reference in our
# hash object was garbage collected, along with the rest of the keys and
-# values. Also, when we tried to inspect our hash, we got a WeakRef::RefError,
-# this is because these objects were also garbage collected.
+# values. Also, when we tried to inspect our hash, we got a WeakRef::RefError.
+# This is because these objects were also garbage collected.
class WeakRef < Delegator