summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorKoichi ITO <koic.ito@gmail.com>2022-05-23 16:40:15 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-09-21 15:21:27 +0900
commite3b178066b6ec6c2f4f6e038c303cc50db35cf3d (patch)
treecef75b93e02097ca2e8f40572f287dba1077f8ea /process.c
parent76b4305a595c4d35241cc55f6382a86bb0c2af23 (diff)
downloadruby-e3b178066b6ec6c2f4f6e038c303cc50db35cf3d.tar.gz
[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>' ```
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 735dd2d855..cb0a0bc542 100644
--- a/process.c
+++ b/process.c
@@ -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