mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 20:00:19 +02:00
Fix doc for inet-ntop: always produces a string
Thanks to Scott McPeak for reporting this. * libguile/socket.c (scm_inet_ntop): In docstring, add quotes around IPv6 address (+ reflow a bit). * doc/ref/posix.texi (Network Address Conversion): Corresponding change. * doc/maint/guile.texi: Corresponding change.
This commit is contained in:
parent
451e15a06c
commit
84a54b292d
3 changed files with 6 additions and 6 deletions
|
@ -397,8 +397,8 @@ SCM_DEFINE (scm_inet_ntop, "inet-ntop", 2, 0, 0,
|
|||
"@var{family} can be @code{AF_INET} or @code{AF_INET6}. E.g.,\n\n"
|
||||
"@lisp\n"
|
||||
"(inet-ntop AF_INET 2130706433) @result{} \"127.0.0.1\"\n"
|
||||
"(inet-ntop AF_INET6 (- (expt 2 128) 1)) @result{}\n"
|
||||
"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff\n"
|
||||
"(inet-ntop AF_INET6 (- (expt 2 128) 1))\n"
|
||||
" @result{} \"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff\"\n"
|
||||
"@end lisp")
|
||||
#define FUNC_NAME s_scm_inet_ntop
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue