1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

Document write-line.

* libguile/rdelim.c (SCM_DEFINE): Use "procedure" rather than
"function".
* doc/ref/api-io.texi (Line/Delimited): Use it to document 'write-line'.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-10-05 15:25:52 +02:00
parent bdb07f8fc7
commit 3db293a71d
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 12 additions and 1 deletions

View file

@ -834,6 +834,17 @@ delimiter may be either a newline or the @var{eof-object}; if
@code{(#<eof> . #<eof>)}.
@end deffn
@deffn {Scheme Procedure} write-line obj [port]
@deffnx {C Function} scm_write_line (obj, port)
Display @var{obj} and a newline character to @var{port}. If
@var{port} is not specified, @code{(current-output-port)} is
used. This procedure is equivalent to:
@lisp
(display obj [port])
(newline [port])
@end lisp
@end deffn
@node Default Ports
@subsection Default Ports for Input, Output and Errors
@cindex Default ports

View file

@ -189,7 +189,7 @@ SCM_DEFINE (scm_write_line, "write-line", 1, 1, 0,
(SCM obj, SCM port),
"Display @var{obj} and a newline character to @var{port}. If\n"
"@var{port} is not specified, @code{(current-output-port)} is\n"
"used. This function is equivalent to:\n"
"used. This procedure is equivalent to:\n"
"@lisp\n"
"(display obj [port])\n"
"(newline [port])\n"