summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-02-05 19:32:07 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-02-05 19:32:07 -0800
commit828c2f81be94c54365fff41154681e5ff4dee3f0 (patch)
treea7318ec0e4b20e88e771bcf9957b4439f81bedaf
parent87894bc6fd24045bac73590e412e5a292a195847 (diff)
downloadtxr-828c2f81be94c54365fff41154681e5ff4dee3f0.tar.gz
txr-828c2f81be94c54365fff41154681e5ff4dee3f0.tar.bz2
txr-828c2f81be94c54365fff41154681e5ff4dee3f0.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