提交 6bb115a6 编写于 作者: R Ryuta Kamizono

Fix warning: `*' interpreted as argument prefix

```
/Users/kamipo/src/github.com/rails/rails/activesupport/test/core_ext/module_test.rb:402: warning: `*' interpreted as argument prefix
/Users/kamipo/src/github.com/rails/rails/activesupport/test/core_ext/module_test.rb:420: warning: `*' interpreted as argument prefix
```
上级 01923838
......@@ -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.
先完成此消息的编辑!
想要评论请 注册