diff options
author | Jeremy Evans <[email protected]> | 2021-02-09 14:47:36 -0800 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2021-02-09 14:47:36 -0800 |
commit | 49d3830f44031174ad450a0ea1cdcdf0eabf9d0e (patch) | |
tree | 1743a8e1bac5454d7bf3cee4730ec72f26aba85e | |
parent | 189bf0106fbd77bcab4dd2567c95e41d8c269035 (diff) |
Fix documentation for Module#ruby2_keywords
It returns nil, not self.
Fixes [Bug #17560]
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index 7218faa5c9..a3bebae95d 100644 --- a/vm_method.c +++ b/vm_method.c @@ -2129,7 +2129,7 @@ rb_mod_private(int argc, VALUE *argv, VALUE module) /* * call-seq: - * ruby2_keywords(method_name, ...) -> self + * ruby2_keywords(method_name, ...) -> nil * * For the given method names, marks the method as passing keywords through * a normal argument splat. This should only be called on methods that |