summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-04-25 15:26:58 (GMT)
committerGuido van Rossum <guido@python.org>2003-04-25 15:26:58 (GMT)
commitb016752d8bb2d56bdb11b743b32f048ce9c9c45f (patch)
tree3a4e2e6b62cf99adfb8c66524dd7c04058e35c1f /Doc
parentbf7ad96d3605660c8267a3f7c14f25dcb6701b2d (diff)
downloadcpython-b016752d8bb2d56bdb11b743b32f048ce9c9c45f.zip
cpython-b016752d8bb2d56bdb11b743b32f048ce9c9c45f.tar.gz
cpython-b016752d8bb2d56bdb11b743b32f048ce9c9c45f.tar.bz2
Fix a copy-paste error: the paragraph about inet_ntop's use was copied
literally from inet_pton.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libsocket.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex
index 6b86eea..05e3c88 100644
--- a/Doc/lib/libsocket.tex
+++ b/Doc/lib/libsocket.tex
@@ -381,8 +381,8 @@ standard, family-specific string representation (for example, '7.10.0.5' or
Supported values for address_family are currently \constant{AF_INET}
and \constant{AF_INET6}.
-\function{inet_pton()} is useful when a library or network protocol calls for
-an object of type \ctype{struct in_addr} (similar to \function{inet_aton()})
+\function{inet_ntop()} is useful when a library or network protocol returns
+an object of type \ctype{struct in_addr} (similar to \function{inet_ntoa()})
or \ctype{struct in6_addr}.
If the string passed to this function is not the correct length for the