#9747: fix copy-paste error in getresgid() doc.
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 8df98cf..2e29e4a 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -299,7 +299,7 @@
.. function:: getresgid()
Return a tuple (rgid, egid, sgid) denoting the current process's
- real, effective, and saved user ids.
+ real, effective, and saved group ids.
Availability: Unix.
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 1080c7e..dda758f 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -7600,7 +7600,7 @@
#ifdef HAVE_GETRESGID
PyDoc_STRVAR(posix_getresgid__doc__,
"getresgid() -> (rgid, egid, sgid)\n\n\
-Get tuple of the current process's real, effective, and saved user ids.");
+Get tuple of the current process's real, effective, and saved group ids.");
static PyObject*
posix_getresgid (PyObject *self, PyObject *noargs)