提交 fed2557e 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #29690 from kamipo/fix_warnings

Fix warning: `*' interpreted as argument prefix
......@@ -399,7 +399,7 @@ def initialize(place)
@place = place
end
private *delegate(:street, :city, to: :@place)
private(*delegate(:street, :city, to: :@place))
end
place = location.new(Somewhere.new("Such street", "Sad city"))
......@@ -417,7 +417,7 @@ def initialize(place)
@place = place
end
private *delegate(:street, :city, to: :@place, prefix: :the)
private(*delegate(:street, :city, to: :@place, prefix: :the))
end
place = location.new(Somewhere.new("Such street", "Sad city"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册