1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

io: cleanup ReaderWriter interface (#12218)

This commit is contained in:
lydiandy 2021-10-18 00:39:51 +08:00 committed by GitHub
parent 3a073329ff
commit 98b2bdb410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,8 @@ module io
// ReaderWriter represents a stream that can be read from and wrote to // ReaderWriter represents a stream that can be read from and wrote to
pub interface ReaderWriter { pub interface ReaderWriter {
// from Reader Reader
mut: Writer
read(mut buf []byte) ?int
// from Writer
write(buf []byte) ?int
} }
// ReaderWriterImpl is a ReaderWriter that can be made from // ReaderWriterImpl is a ReaderWriter that can be made from