Error when using `discardRemaining()`
Ziggit
Error when using `discardRemaining()`
Hi I’m a complete beginner in zig. I’m trying to make a simple REPL program but I’m running into an error when I use the discardRemaining() function for the reader. I’m looking for some help to get it working, I have provided the code and a stacktrace below. var should_quit: bool = false; while (!should_quit) { try stdout_writer.writeAll(">>> "); try stdout_writer.flush(); const input = stdin_reader.takeDelimiterExclusive('\n') catch |err| switch (err) { ...
0 comments
No comments yet.