]> granicus.if.org Git - python/commitdiff
Fix a copy-paste error: the paragraph about inet_ntop's use was copied
authorGuido van Rossum <guido@python.org>
Fri, 25 Apr 2003 15:26:58 +0000 (15:26 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 25 Apr 2003 15:26:58 +0000 (15:26 +0000)
literally from inet_pton.

Doc/lib/libsocket.tex

index 6b86eea2de2b2a96fbcf33908f8db68b360041f0..05e3c88a72461c273e6353f5359ddde7bd0c9f57 100644 (file)
@@ -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