Make the return value mandatory; add ok

This commit is contained in:
Nigel Tao committed 2018-11-24 15:09:28 +11:00
1 parent 24ace1c144
commit 762b320b5e
11 files changed
+45 -50

No files matched your search

+1 -1
View File
@@ -256,7 +256,7 @@ pri func decoder.flush!??(dst base.io_writer) {
var s slice base.u8 = this.output[i:j]
var n base.u64 = args.dst.copy_from_slice!(s:s)
if n == s.length() {
return
return ok
}
i = (i + ((n & 8191) as base.u32)) & 8191
yield base."$short write"