We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb3149 commit fb3b206Copy full SHA for fb3b206
spec/arrays.dd
@@ -1192,7 +1192,7 @@ printf("the string is '%s'\n", "string literal".ptr);
1192
The length comes first, followed by the pointer:)
1193
1194
---------
1195
-printf("the string is '%.*s'\n", str.length, str.ptr);
+printf("the string is '%.*s'\n", cast(int)str.length, str.ptr);
1196
1197
1198
$(P The best way is to use std.stdio.writefln, which can handle
0 commit comments