commit 37a6b98d55eb9bbda7cb2c7d98bcae418ffa84b9
parent 982ed6b3b799c0617e6d212c4c24549ccade33c8
Author: Martin Ashby <martin@ashbysoft.com>
Date: Mon, 19 Aug 2024 22:24:00 +0100
Add a boring commit message
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/root.zig b/src/root.zig
@@ -376,6 +376,7 @@ fn safeclose(dir: *Dir) void {
}
}
+// makes an enum from a string. Ronseal.
fn enumFromString(str: []const u8, enum_type: type) !enum_type {
const ti = @typeInfo(enum_type);
inline for (ti.Enum.fields) |field| {