Change func out-type from struct to bare type

This commit is contained in:
Nigel Tao committed 2018-07-29 10:02:06 +10:00
1 parent af7b15bc17
commit 9919d78245
19 files changed
+236 -239

No files matched your search

+2 -2
View File
@@ -24,11 +24,11 @@ pub struct decoder?(
prefixes array[4096] base.u16[..4095],
)
pub func decoder.set_literal_width!(lw base.u32[2..8])() {
pub func decoder.set_literal_width!(lw base.u32[2..8]) {
this.literal_width = in.lw
}
pub func decoder.decode?(dst base.io_writer, src base.io_reader)() {
pub func decoder.decode?(dst base.io_writer, src base.io_reader) {
// These variables don't change over the lifetime of this func.
var literal_width base.u32[2..8] = 8
if this.literal_width >= 2 {