Zig NEWS

loading...

Discussion on: How to Add Buffering to a Reader / Writer in Zig

Collapse
greenfork profile image
Dmitry Matveyev

I think there's a typo reader()->writer()

out is one specific type of thing that can be written to. You can obtain a unified writer interface by calling its reader() method. This is what gives you access to (unbuffered) print and other similar methods (as exposed by the generic writer inferface).

Collapse
kristoff profile image
Loris Cro Author

Fixed, thank you very much!