diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2023-05-04 18:15:50 -0700 |
|---|---|---|
| committer | Ryan Liptak <squeek502@hotmail.com> | 2023-05-13 13:45:05 -0700 |
| commit | 2129f28953b72da2f1bb58ff063a044d737c59c4 (patch) | |
| tree | d8b12c947b4936cd96f753537c6effd36b2cb0c2 /tools/update_spirv_features.zig | |
| parent | 815e53b147a321d0bdb47dc008aa8181f57175ac (diff) | |
| download | zig-2129f28953b72da2f1bb58ff063a044d737c59c4.tar.gz zig-2129f28953b72da2f1bb58ff063a044d737c59c4.zip | |
Update all std.mem.split calls to their appropriate function
Everywhere that can now use `splitScalar` should get a nice little performance boost.
Diffstat (limited to 'tools/update_spirv_features.zig')
| -rw-r--r-- | tools/update_spirv_features.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/update_spirv_features.zig b/tools/update_spirv_features.zig index 8d398f58de..766a9b7a24 100644 --- a/tools/update_spirv_features.zig +++ b/tools/update_spirv_features.zig @@ -19,7 +19,7 @@ const Version = struct { minor: u32, fn parse(str: []const u8) !Version { - var it = std.mem.split(u8, str, "."); + var it = std.mem.splitScalar(u8, str, '.'); const major = it.first(); const minor = it.next() orelse return error.InvalidVersion; |
