mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Tweak the doc for Process.kill
signature
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: ```console % ruby -e 'Process.kill(0)' -e:1:in `kill': wrong number of arguments (given 1, expected 2+) (ArgumentError) from -e:1:in `<main>' ```
This commit is contained in:
parent
76b4305a59
commit
e3b178066b
Notes:
git
2022-09-21 15:21:50 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -8722,7 +8722,7 @@ get_PROCESS_ID(ID _x, VALUE *_y)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* Process.kill(signal, pid, ...) -> integer
|
||||
* Process.kill(signal, pid, *pids) -> integer
|
||||
*
|
||||
* Sends the given signal to the specified process id(s) if _pid_ is positive.
|
||||
* If _pid_ is zero, _signal_ is sent to all processes whose group ID is equal
|
||||
|
|
Loading…
Reference in a new issue