Rename "yield foo" to "yield? foo"

This commit is contained in:
Nigel Tao committed 2019-02-23 17:15:57 +11:00
1 parent 045f180a6c
commit 931fdce475
8 files changed
+21 -13

No files matched your search

+2 -2
View File
@@ -114,7 +114,7 @@ pub func decoder.decode_io_writer?(dst base.io_writer, src base.io_reader, workb
} else if this.read_from_return_value == 1 {
continue
} else if this.read_from_return_value == 2 {
yield base."$short read"
yield? base."$short read"
} else if this.read_from_return_value == 3 {
return "#bad code"
} else {
@@ -346,7 +346,7 @@ pri func decoder.write_to?(dst base.io_writer) {
return ok
}
this.output_ri = (this.output_ri ~mod+ ((n & 0xFFFFFFFF) as base.u32)) & 8191
yield base."$short write"
yield? base."$short write"
}
}