ruby icon indicating copy to clipboard operation
ruby copied to clipboard

[DOC] Tweak the doc for `Process.kill` signature

Open koic opened this issue 3 years ago • 0 comments

Replacing ... with *pids seems to clarify the expected variadic arguments.

Note that the expected arguments are two or more with a signal and pids. That is, the method must have at least one pid, which cannot be omitted:

% ruby -e 'Process.kill(0)'
-e:1:in `kill': wrong number of arguments (given 1, expected 2+) (ArgumentError)
        from -e:1:in `<main>'

koic avatar May 23 '22 08:05 koic