ruby-changes:65212
From: Jeremy <ko1@a...>
Date: Wed, 10 Feb 2021 07:49:31 +0900 (JST)
Subject: [ruby-changes:65212] 49d3830f44 (master): Fix documentation for Module#ruby2_keywords
https://git.ruby-lang.org/ruby.git/commit/?id=49d3830f44 From 49d3830f44031174ad450a0ea1cdcdf0eabf9d0e Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Tue, 9 Feb 2021 14:47:36 -0800 Subject: 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(-) diff --git a/vm_method.c b/vm_method.c index 7218faa..a3bebae 100644 --- a/vm_method.c +++ b/vm_method.c @@ -2129,7 +2129,7 @@ rb_mod_private(int argc, VALUE *argv, VALUE module) https://github.com/ruby/ruby/blob/trunk/vm_method.c#L2129 /* * 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/