Skip to content

Commit fb3b206

Browse files
kubo39dlang-bot
authored andcommitted
Suppress deprecation for format specification
1 parent bdb3149 commit fb3b206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/arrays.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ printf("the string is '%s'\n", "string literal".ptr);
11921192
The length comes first, followed by the pointer:)
11931193

11941194
---------
1195-
printf("the string is '%.*s'\n", str.length, str.ptr);
1195+
printf("the string is '%.*s'\n", cast(int)str.length, str.ptr);
11961196
---------
11971197

11981198
$(P The best way is to use std.stdio.writefln, which can handle

0 commit comments

Comments
 (0)