aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorxackus <14938807+xackus@users.noreply.github.com>2020-04-04 19:15:08 +0200
committerAndrew Kelley <andrew@ziglang.org>2020-04-04 17:37:51 -0400
commitcd20e0cc672249555709e1b58a415ddd50b03ad9 (patch)
tree38f017bc3a4f7adbf7c3a1463ba66d3a1ab9569f /test/tests.zig
parente5d479b06e74e04b3ef3108e6098424b2130cbe5 (diff)
downloadzig-cd20e0cc672249555709e1b58a415ddd50b03ad9.tar.gz
zig-cd20e0cc672249555709e1b58a415ddd50b03ad9.zip
rename mem.separate to mem.split
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tests.zig b/test/tests.zig
index e66ae7296a..d88c84502d 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -657,7 +657,7 @@ pub const StackTracesContext = struct {
var buf = ArrayList(u8).init(b.allocator);
defer buf.deinit();
if (stderr.len != 0 and stderr[stderr.len - 1] == '\n') stderr = stderr[0 .. stderr.len - 1];
- var it = mem.separate(stderr, "\n");
+ var it = mem.split(stderr, "\n");
process_lines: while (it.next()) |line| {
if (line.len == 0) continue;
const delims = [_][]const u8{ ":", ":", ":", " in " };
@@ -750,7 +750,7 @@ pub const CompileErrorContext = struct {
const source_file = "tmp.zig";
fn init(input: []const u8) ErrLineIter {
- return ErrLineIter{ .lines = mem.separate(input, "\n") };
+ return ErrLineIter{ .lines = mem.split(input, "\n") };
}
fn next(self: *ErrLineIter) ?[]const u8 {