Skip to content

Commit 70fdb09

Browse files
committed
chore: Update to latest zig
1 parent 075ecd1 commit 70fdb09

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,22 @@ const rgb = mecha.combine(.{
3838
test "rgb" {
3939
const testing = std.testing;
4040
const allocator = testing.allocator;
41-
const a = (try rgb.parse(allocator, "#aabbcc")).ok.value;
41+
const a = (try rgb.parse(allocator, "#aabbcc")).value.ok;
4242
try testing.expectEqual(@as(u8, 0xaa), a.r);
4343
try testing.expectEqual(@as(u8, 0xbb), a.g);
4444
try testing.expectEqual(@as(u8, 0xcc), a.b);
4545
46-
const b = (try rgb.parse(allocator, "#abc")).ok.value;
46+
const b = (try rgb.parse(allocator, "#abc")).value.ok;
4747
try testing.expectEqual(@as(u8, 0xaa), b.r);
4848
try testing.expectEqual(@as(u8, 0xbb), b.g);
4949
try testing.expectEqual(@as(u8, 0xcc), b.b);
5050
51-
const c = (try rgb.parse(allocator, "#000000")).ok.value;
51+
const c = (try rgb.parse(allocator, "#000000")).value.ok;
5252
try testing.expectEqual(@as(u8, 0), c.r);
5353
try testing.expectEqual(@as(u8, 0), c.g);
5454
try testing.expectEqual(@as(u8, 0), c.b);
5555
56-
const d = (try rgb.parse(allocator, "#000")).ok.value;
56+
const d = (try rgb.parse(allocator, "#000")).value.ok;
5757
try testing.expectEqual(@as(u8, 0), d.r);
5858
try testing.expectEqual(@as(u8, 0), d.g);
5959
try testing.expectEqual(@as(u8, 0), d.b);

Diff for: build.zig.zon

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.{
2-
.name = "mecha",
3-
.version = "0.7.0",
2+
.name = .mecha,
3+
.version = "0.9.0",
4+
.fingerprint = 0x767886c8489a5175,
45
.paths = .{"."},
56
}

0 commit comments

Comments
 (0)