Skip to content

Commit ce9bc76

Browse files
committed
Update WeakRef#initialize documentation
This is no longer true since https://bugs.ruby-lang.org/issues/16035 which landed in Ruy 2.7.0. I'm not sure if it's best to remove that sentence or to add that it only applies to 2.6 and older.
1 parent 348c1ff commit ce9bc76

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/weakref.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ class RefError < StandardError
3030

3131
##
3232
# Creates a weak reference to +orig+
33-
#
34-
# Raises an ArgumentError if the given +orig+ is immutable, such as Symbol,
35-
# Integer, or Float.
3633

3734
def initialize(orig)
3835
case orig

0 commit comments

Comments
 (0)