aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_hash_map.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-12-29 00:20:31 +0100
committerAndrew Kelley <andrew@ziglang.org>2020-12-29 19:09:36 -0800
commit3634d44d08c73326c7783cf2a3095acb50eb2e1c (patch)
tree90e6ddf5f7e41e84f93ab4776a8252e979b5f379 /lib/std/array_hash_map.zig
parent3d79ae2be307372ca309e92f622a8f607ebeb926 (diff)
downloadzig-3634d44d08c73326c7783cf2a3095acb50eb2e1c.tar.gz
zig-3634d44d08c73326c7783cf2a3095acb50eb2e1c.zip
std: fix Reader.readUntilDelimiterOrEofAlloc() API
The current API does not allow the user to distinguish between EOF and an empty line. Reader.readUntilDelimiterOrEof() gets this API right so update readUntilDelimiterOrEofAlloc() to match it. Returning an optional here additionally makes calling this in a loop much cleaner. Remove readUntilDelimiterOrEofArrayList() as it no longer needed to implement readUntilDelimiterOrEof() and has the same API issues described without a clear way to fix them.
Diffstat (limited to 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions