summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-02-09 14:47:36 -0800
committerJeremy Evans <code@jeremyevans.net>2021-02-09 14:47:36 -0800
commit49d3830f44031174ad450a0ea1cdcdf0eabf9d0e (patch)
tree1743a8e1bac5454d7bf3cee4730ec72f26aba85e /vm_method.c
parent189bf0106fbd77bcab4dd2567c95e41d8c269035 (diff)
Fix documentation for Module#ruby2_keywords
It returns nil, not self. Fixes [Bug #17560]
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
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