summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kyheku <kaz@kylheku.com>2020-02-05 19:32:07 -0800
committerKaz Kyheku <kaz@kylheku.com>2020-02-05 19:32:07 -0800
commit3e556a1196d09c76605ba3cf24d94fd9c6b85d79 (patch)
treea7318ec0e4b20e88e771bcf9957b4439f81bedaf
parentbaf36818dfb471378b0952a6d79f26e605877aa5 (diff)
downloadtxr-3e556a1196d09c76605ba3cf24d94fd9c6b85d79.tar.gz
txr-3e556a1196d09c76605ba3cf24d94fd9c6b85d79.tar.bz2
txr-3e556a1196d09c76605ba3cf24d94fd9c6b85d79.zip
doc: fill-buf return value wrongly described.
* txr.1: The fill-buf function returns the position after the last byte that was read, not the position of that that last byte.
-rw-r--r--txr.13
1 files changed, 2 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index 1461062d..9da947e5 100644
--- a/txr.1
+++ b/txr.1
@@ -24916,7 +24916,8 @@ do not support
The
.code fill-buf
-function returns the position of the last byte that was successfully read.
+function returns the position that is one byte past the last byte that
+was successfully read.
If an end-of-file or other error condition occurs before the buffer is filled
through to the end, then the value returned is smaller than the buffer length.
In this case, the area of the buffer beyond the read size retains its previous