~alva/moj

293d0b830ce403e109243774f10f80d7cd87b7bd — ugla 1 year, 5 months ago 37fafd8
Return unsuccess if no matches
1 files changed, 4 insertions(+), 0 deletions(-)

M src/main.zig
M src/main.zig => src/main.zig +4 -0
@@ 16,6 16,10 @@ pub fn main() anyerror!void {
        needle[i] = badToUpper(c);

    try writeMatches(buff_writer, needle);

    if (buffered.fifo.count == 0)
        return error.NoMatches;

    try buffered.flush();
}