GNU bug report logs - #37537
[PATCH] doc: Fix order of arguments to seek.

Previous Next

Package: guile;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Sat, 28 Sep 2019 05:36:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: bug-guile <at> gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH] doc: Fix order of arguments to seek.
Date: Sat, 28 Sep 2019 11:04:56 +0530
* doc/ref/r6rs.texi (rnrs io ports): Fix order of arguments to seek in
port-position and set-port-position! documentation.
---
 doc/ref/r6rs.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/ref/r6rs.texi b/doc/ref/r6rs.texi
index 9d326ff09..3f36fef0f 100644
--- a/doc/ref/r6rs.texi
+++ b/doc/ref/r6rs.texi
@@ -1739,7 +1739,7 @@ chapter.
 @end deffn
 
 @deffn {Scheme Procedure} port-position port
-Equivalent to @code{(seek @var{port} SEEK_CUR 0)}.  @xref{Random
+Equivalent to @code{(seek @var{port} 0 SEEK_CUR)}.  @xref{Random
 Access}.
 @end deffn
 
@@ -1748,7 +1748,7 @@ Return @code{#t} is @var{port} supports @code{port-position}.
 @end deffn
 
 @deffn {Scheme Procedure} set-port-position! port offset
-Equivalent to @code{(seek @var{port} SEEK_SET @var{offset})}.
+Equivalent to @code{(seek @var{port} @var{offset} SEEK_SET)}.
 @xref{Random Access}.
 @end deffn
 
-- 
2.23.0





This bug report was last modified 5 years and 58 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.