summaryrefslogtreecommitdiffstats
path: root/Doc/library/socket.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-21 11:49:39 (GMT)
committerGitHub <noreply@github.com>2023-07-21 11:49:39 (GMT)
commit84e52171b541ecc01f2d738cf82f5d4199a4bce7 (patch)
treed71b78f93d8cc1c1baa5c45435a75b130dfed5d2 /Doc/library/socket.rst
parent4be0f157ea7000ded8d4a3ae818a74b026f1fed3 (diff)
downloadcpython-84e52171b541ecc01f2d738cf82f5d4199a4bce7.zip
cpython-84e52171b541ecc01f2d738cf82f5d4199a4bce7.tar.gz
cpython-84e52171b541ecc01f2d738cf82f5d4199a4bce7.tar.bz2
[3.12] gh-106909: Use role :const: for referencing module constants (GH-106910) (GH-106956)
(cherry picked from commit 4b9948617f91175783609769aa6160e5b49b9ccc)
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r--Doc/library/socket.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index f2408cb..4f220e8 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -2252,7 +2252,7 @@ This is because the previous execution has left the socket in a ``TIME_WAIT``
state, and can't be immediately reused.
There is a :mod:`socket` flag to set, in order to prevent this,
-:data:`socket.SO_REUSEADDR`::
+:const:`socket.SO_REUSEADDR`::
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)