diff options
| author | xackus <14938807+xackus@users.noreply.github.com> | 2020-04-04 19:15:08 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-04-04 17:37:51 -0400 |
| commit | cd20e0cc672249555709e1b58a415ddd50b03ad9 (patch) | |
| tree | 38f017bc3a4f7adbf7c3a1463ba66d3a1ab9569f /lib/std/net.zig | |
| parent | e5d479b06e74e04b3ef3108e6098424b2130cbe5 (diff) | |
| download | zig-cd20e0cc672249555709e1b58a415ddd50b03ad9.tar.gz zig-cd20e0cc672249555709e1b58a415ddd50b03ad9.zip | |
rename mem.separate to mem.split
Diffstat (limited to 'lib/std/net.zig')
| -rw-r--r-- | lib/std/net.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig index f91b2b86aa..9e57aa500b 100644 --- a/lib/std/net.zig +++ b/lib/std/net.zig @@ -823,7 +823,7 @@ fn linuxLookupNameFromHosts( }, else => |e| return e, }) |line| { - const no_comment_line = mem.separate(line, "#").next().?; + const no_comment_line = mem.split(line, "#").next().?; var line_it = mem.tokenize(no_comment_line, " \t"); const ip_text = line_it.next() orelse continue; @@ -1020,13 +1020,13 @@ fn getResolvConf(allocator: *mem.Allocator, rc: *ResolvConf) !void { }, else => |e| return e, }) |line| { - const no_comment_line = mem.separate(line, "#").next().?; + const no_comment_line = mem.split(line, "#").next().?; var line_it = mem.tokenize(no_comment_line, " \t"); const token = line_it.next() orelse continue; if (mem.eql(u8, token, "options")) { while (line_it.next()) |sub_tok| { - var colon_it = mem.separate(sub_tok, ":"); + var colon_it = mem.split(sub_tok, ":"); const name = colon_it.next().?; const value_txt = colon_it.next() orelse continue; const value = std.fmt.parseInt(u8, value_txt, 10) catch |err| switch (err) { |
