diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-01-22 19:51:37 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-01-22 19:51:37 -0500 |
| commit | 47cf8520adb245dbd34ad60fc9206b7eaab5e0be (patch) | |
| tree | e2859d84e1dbf803b63bd3ac11014f7b3709f467 /std/str.zig | |
| parent | 6a5e61acd117277eb2f943f5bc02ff7043542d4b (diff) | |
| download | zig-47cf8520adb245dbd34ad60fc9206b7eaab5e0be.tar.gz zig-47cf8520adb245dbd34ad60fc9206b7eaab5e0be.zip | |
use comptime instead of inline for var and params
See #221
Diffstat (limited to 'std/str.zig')
| -rw-r--r-- | std/str.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/str.zig b/std/str.zig index 0763f108fb..bb891b37ef 100644 --- a/std/str.zig +++ b/std/str.zig @@ -4,7 +4,7 @@ pub fn eql(a: []const u8, b: []const u8) -> bool { sliceEql(u8, a, b) } -pub fn sliceEql(inline T: type, a: []const T, b: []const T) -> bool { +pub fn sliceEql(comptime T: type, a: []const T, b: []const T) -> bool { if (a.len != b.len) return false; for (a) |item, index| { if (b[index] != item) return false; |
