ref: d710ee583d7591cfaba91d7ee39676dbcae1a116
parent: 79bd9957c85b57f31089719c9715e66e99296bbc
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Dec 27 16:15:57 EST 2015
typo in bio.ensureread() We should return n if we read exactly n bytes, as well as more than n bytes.
--- a/lib/bio/bio.myr
+++ b/lib/bio/bio.myr
@@ -567,7 +567,7 @@
| `Eof: -> `Eof
| `Err e: -> `Err e
| `Ok len:
- if len > n
+ if len >= n
-> `Ok len
else
-> `Eof