aboutsummaryrefslogtreecommitdiff
path: root/lib/std/special
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-03-01 13:21:29 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-03-01 13:21:39 -0500
commitef3d761da545a3a72928ed0e0ba3b749a4cb74d8 (patch)
treed05e7ddf19d709975f432e60f5a2321309078517 /lib/std/special
parent5b26128bacddf594dfe45958a236bfa2459f878b (diff)
downloadzig-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.zig2
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 {