mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
Fixed writeln() regression
This commit is contained in:
parent
4beb6c3d0e
commit
fffb5555e6
1 changed files with 1 additions and 1 deletions
|
@ -1330,7 +1330,7 @@ void writeln(T...)(T args)
|
||||||
if (T.length == 1 && is(typeof(args[0]) : const(char)[]))
|
if (T.length == 1 && is(typeof(args[0]) : const(char)[]))
|
||||||
{
|
{
|
||||||
enforce(fprintf(.stdout.p.handle, "%.*s\n",
|
enforce(fprintf(.stdout.p.handle, "%.*s\n",
|
||||||
args[0].length, args[0].ptr) >= 0);
|
cast(int) args[0].length, args[0].ptr) >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
unittest
|
unittest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue