summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2016-08-11 15:10:19 -0500
committerAndy Wingo <wingo@pobox.com>2016-08-31 15:51:38 +0200
commitcc9e72bd2b896048af2a65c8af9a57868df4352f (patch)
tree78e9e910fe7ea61f49a658ad047895db76422053
parentf46cb25a17fd9b014e2d7ad0b2d27c5dd94688cd (diff)
Fix example in make-custom-binary-input-port documentation
* doc/ref/api-io.texi (Custom Ports): Add additional argument to example's invocation of make-custom-binary-input-port. Previously had mismatched arity by missing "closed" argument.
-rw-r--r--doc/ref/api-io.texi6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi
index 76c8db806..e4e4f36ab 100644
--- a/doc/ref/api-io.texi
+++ b/doc/ref/api-io.texi
@@ -1,7 +1,7 @@
@c -*-texinfo-*-
@c This is part of the GNU Guile Reference Manual.
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2007, 2009,
-@c 2010, 2011, 2013 Free Software Foundation, Inc.
+@c 2010, 2011, 2013, 2016 Free Software Foundation, Inc.
@c See the file guile.texi for copying conditions.
@node Input and Output
@@ -1278,8 +1278,8 @@ procedure (@pxref{Bytevector Ports}) could be implemented as follows:
(set! position new-position))
(make-custom-binary-input-port "the port" read!
- get-position
- set-position!))
+ get-position set-position!
+ #f))
(read (open-bytevector-input-port (string->utf8 "hello")))
@result{} hello