about summary refs log tree commit diff
path: root/src/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/root.zig')
-rw-r--r--src/root.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/root.zig b/src/root.zig
index 353cfcb..c5b0633 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -117,7 +117,7 @@ fn structWithMethods(T: type, fields_len: usize) !*KV {
 }
 
 /// Gets function argument.
-fn getArg(comptime T: type, argv: [*c]Value, n: i32) !T {
+fn getArg(T: type, argv: [*c]Value, n: i32) !T {
     return switch (@typeInfo(T)) {
         .bool => c.janet_getboolean(argv, n) != 0,
         .int => |int| @intCast(switch (int.signedness) {
@@ -247,7 +247,7 @@ fn isNil(x: Value) bool {
 }
 
 /// Unwraps to native type.
-pub fn unwrap(comptime T: type, x: Value) !T {
+pub fn unwrap(T: type, x: Value) !T {
     return switch (@typeInfo(T)) {
         .void => {},
         .bool => c.janet_unwrap_boolean(x) != 0,