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
@@ -30,11 +30,11 @@ pub struct decoder?(
ignore_checksum base.bool,
)
pub func decoder.set_ignore_checksum!(ic base.bool)() {
pub func decoder.set_ignore_checksum!(ic base.bool) {
this.ignore_checksum = in.ic
}
pub func decoder.decode?(dst base.io_writer, src base.io_reader)() {
pub func decoder.decode?(dst base.io_writer, src base.io_reader) {
var x base.u16 = in.src.read_u16be?()
if ((x >> 8) & 0x0F) != 0x08 {
return error "bad compression method"