diff options
| author | r00ster <r00ster91@proton.me> | 2022-07-25 21:04:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-25 22:04:30 +0300 |
| commit | cff5d9c805aa3433cc2562c3cb29bd3201817214 (patch) | |
| tree | aa7bedeeb92523806f79887159d66b8b2934f375 /tools | |
| parent | 2f34d06d01189ae6349e9c6341ba85ec50b92bb0 (diff) | |
| download | zig-cff5d9c805aa3433cc2562c3cb29bd3201817214.tar.gz zig-cff5d9c805aa3433cc2562c3cb29bd3201817214.zip | |
std.mem: add `first` method to `SplitIterator` and `SplitBackwardsIterator`
Diffstat (limited to 'tools')
| -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 b32356e815..8d20039fa1 100644 --- a/tools/update_spirv_features.zig +++ b/tools/update_spirv_features.zig @@ -21,7 +21,7 @@ const Version = struct { fn parse(str: []const u8) !Version { var it = std.mem.split(u8, str, "."); - const major = it.next() orelse return error.InvalidVersion; + const major = it.first(); const minor = it.next() orelse return error.InvalidVersion; if (it.next() != null) return error.InvalidVersion; |
