summaryrefslogtreecommitdiff
path: root/lib/weakref.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/weakref.rb')
-rw-r--r--lib/weakref.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/weakref.rb b/lib/weakref.rb
index 10ec5ad4767..b3f3856db99 100644
--- a/lib/weakref.rb
+++ b/lib/weakref.rb
@@ -3,11 +3,11 @@
# Usage:
# foo = Object.new
# foo = Object.new
-# p foo.to_s # original's class
+# p foo.to_s # original's class
# foo = WeakRef.new(foo)
-# p foo.to_s # should be same class
+# p foo.to_s # should be same class
# ObjectSpace.garbage_collect
-# p foo.to_s # should raise exception (recycled)
+# p foo.to_s # should raise exception (recycled)
require "delegate"
require 'thread'
@@ -71,10 +71,10 @@ end
if __FILE__ == $0
# require 'thread'
foo = Object.new
- p foo.to_s # original's class
+ p foo.to_s # original's class
foo = WeakRef.new(foo)
- p foo.to_s # should be same class
+ p foo.to_s # should be same class
ObjectSpace.garbage_collect
ObjectSpace.garbage_collect
- p foo.to_s # should raise exception (recycled)
+ p foo.to_s # should raise exception (recycled)
end