summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2025-01-10 12:24:39 -0500
committerAlan Wu <[email protected]>2025-01-13 12:58:59 -0500
commit6637aa4682ef64134e05af949a9beee260dab937 (patch)
treebe0f88d070815ec8530ff58e4b4b532690f1232f /proc.c
parent85a25116ccfe509d8a3de9cd5bfc467f2d77159e (diff)
Proc#parameters: Show anonymous optionals as `[:opt]`
Have this for lead parameters as well as parameters after rest ("post"). [Bug #20974]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12547
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 0608f584c8..88e0fbebbb 100644
--- a/proc.c
+++ b/proc.c
@@ -4323,7 +4323,7 @@ proc_ruby2_keywords(VALUE procval)
*
* p = proc { it**2 }
* l = lambda { it**2 }
- * p.parameters # => [[:opt, nil]]
+ * p.parameters # => [[:opt]]
* p.arity # => 1
* l.parameters # => [[:req]]
* l.arity # => 1