Minor correction to bytes.Buffer's vtable

This commit is contained in:
gingerBill committed 2020-12-05 15:36:02 +00:00
1 parent 14ae2e0a8d
commit a82c902f99
2 files changed
+30 -18

No files matched your search

+4
View File
@@ -310,6 +310,10 @@ _buffer_vtable := &io.Stream_VTable{
b := (^Buffer)(s.stream_data);
return buffer_write_byte(b, c);
},
impl_write_rune = proc(s: io.Stream, r: rune) -> (int, io.Error) {
b := (^Buffer)(s.stream_data);
return buffer_write_rune(b, r);
},
impl_unread_byte = proc(s: io.Stream) -> io.Error {
b := (^Buffer)(s.stream_data);
return buffer_unread_byte(b);