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:
parent
bdb07f8fc7
commit
3db293a71d
2 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue