process.c: [DOC] improve docs for Process.groups

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
stomar 2018-10-12 20:01:52 +00:00
Родитель e7719a1c6a
Коммит 580a210350
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -6164,20 +6164,20 @@ maxgroups(void)
* call-seq:
* Process.groups -> array
*
* Get an <code>Array</code> of the gids of groups in the
* Get an <code>Array</code> of the group IDs in the
* supplemental group access list for this process.
*
* Process.groups #=> [27, 6, 10, 11]
*
* Note that this method is just a wrapper of getgroups(2).
* This means that the following characteristics of
* the results are completely depends on your system:
* the result completely depend on your system:
*
* - the result is sorted
* - the result includes effective GIDs
* - the result does not include duplicated GIDs
*
* You can certainly get a sorted unique GID list of
* You can make sure to get a sorted unique GID list of
* the current process by this expression:
*
* Process.groups.uniq.sort