aboutsummaryrefslogtreecommitdiff
path: root/test/behavior
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2023-05-04 18:05:40 -0700
committerRyan Liptak <squeek502@hotmail.com>2023-05-13 13:45:04 -0700
commit815e53b147a321d0bdb47dc008aa8181f57175ac (patch)
treedc4b4107c3fa8a50032d6d916a57a1718a445fc9 /test/behavior
parentce9f3ec990cd556f2a9d06a6db2bb53e97a61172 (diff)
downloadzig-815e53b147a321d0bdb47dc008aa8181f57175ac.tar.gz
zig-815e53b147a321d0bdb47dc008aa8181f57175ac.zip
Update all std.mem.tokenize calls to their appropriate function
Everywhere that can now use `tokenizeScalar` should get a nice little performance boost.
Diffstat (limited to 'test/behavior')
-rw-r--r--test/behavior/bugs/6456.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior/bugs/6456.zig b/test/behavior/bugs/6456.zig
index 1eef9c7f75..297c9c7423 100644
--- a/test/behavior/bugs/6456.zig
+++ b/test/behavior/bugs/6456.zig
@@ -18,7 +18,7 @@ test "issue 6456" {
comptime {
var fields: []const StructField = &[0]StructField{};
- var it = std.mem.tokenize(u8, text, "\n");
+ var it = std.mem.tokenizeScalar(u8, text, '\n');
while (it.next()) |name| {
fields = fields ++ &[_]StructField{StructField{
.alignment = 0,