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
@@ -28,11 +28,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) {
// Read the header.
var c base.u8 = in.src.read_u8?()
if c != 0x1F {