fix typo
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 70e9a34..9e7890d 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -173,14 +173,14 @@
 
    Return the parent's process id. Availability: Unix.
 
-.. function:: getresgid()
+.. function:: getresuid()
 
    Return a tuple (ruid, euid, suid) denoting the current process's
    real, effective, and saved user ids. Availability: Unix.
 
    .. versionadded:: 2.7/3.2
 
-.. function:: getresuid()
+.. function:: getresgid()
 
    Return a tuple (rgid, egid, sgid) denoting the current process's
    real, effective, and saved user ids. Availability: Unix.