diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-01 13:21:29 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-01 13:21:39 -0500 |
| commit | ef3d761da545a3a72928ed0e0ba3b749a4cb74d8 (patch) | |
| tree | d05e7ddf19d709975f432e60f5a2321309078517 /lib/std/special | |
| parent | 5b26128bacddf594dfe45958a236bfa2459f878b (diff) | |
| download | zig-ef3d761da545a3a72928ed0e0ba3b749a4cb74d8.tar.gz zig-ef3d761da545a3a72928ed0e0ba3b749a4cb74d8.zip | |
breaking: std.mem.len no longer takes a type argument
also update fmt code to use std.mem.span.
Diffstat (limited to 'lib/std/special')
| -rw-r--r-- | lib/std/special/c.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/special/c.zig b/lib/std/special/c.zig index 1f11fabca0..e0c2636df1 100644 --- a/lib/std/special/c.zig +++ b/lib/std/special/c.zig @@ -47,7 +47,7 @@ fn strcmp(s1: [*:0]const u8, s2: [*:0]const u8) callconv(.C) c_int { } fn strlen(s: [*:0]const u8) callconv(.C) usize { - return std.mem.len(u8, s); + return std.mem.len(s); } fn strncmp(_l: [*:0]const u8, _r: [*:0]const u8, _n: usize) callconv(.C) c_int { |
