Issue #18758: Fixed and improved cross-references.
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index b442b7c..aa18ae4 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -275,7 +275,7 @@
           RCVALL_*
 
    Constants for Windows' WSAIoctl(). The constants are used as arguments to the
-   :meth:`ioctl` method of socket objects.
+   :meth:`~socket.socket.ioctl` method of socket objects.
 
 
 .. data:: TIPC_*