mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Small code reduction in std.ascii.
We can have the comment only once, and it will still show up in the docs.
This commit is contained in:
parent
15234c3103
commit
c8b472c526
1 changed files with 1 additions and 6 deletions
|
@ -53,16 +53,11 @@ enum LetterCase : bool
|
||||||
lower /// Lower case letters
|
lower /// Lower case letters
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Newline sequence for this system.
|
||||||
version(Windows)
|
version(Windows)
|
||||||
{
|
|
||||||
/// Newline sequence for this system.
|
|
||||||
immutable newline = "\r\n";
|
immutable newline = "\r\n";
|
||||||
}
|
|
||||||
else version(Posix)
|
else version(Posix)
|
||||||
{
|
|
||||||
/// Newline sequence for this system.
|
|
||||||
immutable newline = "\n";
|
immutable newline = "\n";
|
||||||
}
|
|
||||||
else
|
else
|
||||||
static assert(0, "Unsupported OS");
|
static assert(0, "Unsupported OS");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue