Skip to content

Commit 55f72e1

Browse files
committed
"warning: `&' interpreted as argument prefix"
1 parent 83824b7 commit 55f72e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/concurrent/synchronization/object.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def compare_and_set_#{name}(expected, value)
122122
end
123123
124124
def update_#{name}(&block)
125-
#{ivar}.update &block
125+
#{ivar}.update(&block)
126126
end
127127
RUBY
128128
end

0 commit comments

Comments
 (0)