1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix documentation for Module#ruby2_keywords

It returns nil, not self.

Fixes [Bug #17560]
This commit is contained in:
Jeremy Evans 2021-02-09 14:47:36 -08:00
parent 189bf0106f
commit 49d3830f44

View file

@ -2129,7 +2129,7 @@ rb_mod_private(int argc, VALUE *argv, VALUE module)
/* /*
* call-seq: * call-seq:
* ruby2_keywords(method_name, ...) -> self * ruby2_keywords(method_name, ...) -> nil
* *
* For the given method names, marks the method as passing keywords through * For the given method names, marks the method as passing keywords through
* a normal argument splat. This should only be called on methods that * a normal argument splat. This should only be called on methods that