ruby-changes:31551
From: zzak <ko1@a...>
Date: Sun, 10 Nov 2013 07:42:29 +0900 (JST)
Subject: [ruby-changes:31551] zzak:r43630 (trunk): * lib/weakref.rb: [DOC] fix typos by @xaviershay [Fixes GH-439]
zzak 2013-11-10 07:42:20 +0900 (Sun, 10 Nov 2013) New Revision: 43630 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43630 Log: * lib/weakref.rb: [DOC] fix typos by @xaviershay [Fixes GH-439] https://github.com/ruby/ruby/pull/439 Modified files: trunk/ChangeLog trunk/lib/weakref.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 43629) +++ ChangeLog (revision 43630) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Nov 10 07:41:22 2013 Zachary Scott <e@z...> + + * lib/weakref.rb: [DOC] fix typos by @xaviershay [Fixes GH-439] + https://github.com/ruby/ruby/pull/439 + Sun Nov 10 06:14:39 2013 Charlie Somerville <charliesome@r...> * compile.c (iseq_compile_each): emit opt_str_freeze if the #freeze Index: lib/weakref.rb =================================================================== --- lib/weakref.rb (revision 43629) +++ lib/weakref.rb (revision 43630) @@ -16,7 +16,7 @@ require "delegate" https://github.com/ruby/ruby/blob/trunk/lib/weakref.rb#L16 # # == 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" https://github.com/ruby/ruby/blob/trunk/lib/weakref.rb#L33 # 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" https://github.com/ruby/ruby/blob/trunk/lib/weakref.rb#L57 # 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/