diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-12-09 00:15:54 +0900 |
---|---|---|
committer | git <[email protected]> | 2022-02-09 22:22:45 +0900 |
commit | ec6d1cf28fc333fa360ab786c3852b95475932b2 (patch) | |
tree | d5ad5d8d76c1f4eb160204599c3db4191af3192b /lib/rdoc | |
parent | 994b3f1dc61b3eb3021fad82f6a7b934af8d0961 (diff) |
[ruby/rdoc] Get rid of ruby-mode.el confusions
https://github.com/ruby/rdoc/commit/63fac51198
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/parser/c.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb index df86d7f452..075f4a072b 100644 --- a/lib/rdoc/parser/c.rb +++ b/lib/rdoc/parser/c.rb @@ -1015,7 +1015,8 @@ class RDoc::Parser::C < RDoc::Parser elsif p_count == -1 then # argc, argv rb_scan_args body else - "(#{(1..p_count).map { |i| "p#{i}" }.join ', '})" + args = (1..p_count).map { |i| "p#{i}" } + "(#{args.join ', '})" end |