summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2021-02-16 13:13:27 +0900
committerNARUSE, Yui <naruse@airemix.jp>2021-02-16 13:13:27 +0900
commit38f9c832e812f96fd06ca73688ff2baa528c119c (patch)
treeb208adf4abd281a011d42b5ff6ecd1c0a4365b59 /vm_method.c
parentccba4665a86e5c7a1c76b59caf97be1ae10d22de (diff)
merge revision(s) 49d3830f44031174ad450a0ea1cdcdf0eabf9d0e: [Backport #17560]
Fix documentation for Module#ruby2_keywords It returns nil, not self. Fixes [Bug #17560] --- vm_method.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 928b509651..51b8b6b07b 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -2107,7 +2107,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