diff options
author | Guido van Rossum <guido@python.org> | 2003-04-25 15:26:58 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-04-25 15:26:58 +0000 |
commit | 78e8d6267185a1022b8e00278eff4e4734063cca (patch) | |
tree | cd1dbae48088089b22b8dc79e0e2d12e1d23432b | |
parent | c5a09724042dfbe06aeb6deb21c316a716699834 (diff) | |
download | cpython-78e8d6267185a1022b8e00278eff4e4734063cca.tar.gz |
Fix a copy-paste error: the paragraph about inet_ntop's use was copied
literally from inet_pton.
-rw-r--r-- | Doc/lib/libsocket.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index 6b86eea2de..05e3c88a72 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 |