mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +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
|
||||
}
|
||||
|
||||
/// Newline sequence for this system.
|
||||
version(Windows)
|
||||
{
|
||||
/// Newline sequence for this system.
|
||||
immutable newline = "\r\n";
|
||||
}
|
||||
else version(Posix)
|
||||
{
|
||||
/// Newline sequence for this system.
|
||||
immutable newline = "\n";
|
||||
}
|
||||
else
|
||||
static assert(0, "Unsupported OS");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue