Issue #21818: Fixed references to classes that have names matching with module
names.
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index aff6a2e..7b761d7 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -835,7 +835,7 @@
:meth:`~socket.recv` and :meth:`~socket.send` without *flags* argument instead.
Socket objects also have these (read-only) attributes that correspond to the
-values given to the :class:`socket` constructor.
+values given to the :class:`~socket.socket` constructor.
.. attribute:: socket.family