Minor style.
This commit is contained in:
parent
ebe10ad8c4
commit
a8c32430ed
|
@ -582,8 +582,7 @@ auto decodeUTF(ubyte[] input, UTFEncoding encoding) @safe pure nothrow
|
||||||
if(result.errorMessage !is null) { return result; }
|
if(result.errorMessage !is null) { return result; }
|
||||||
|
|
||||||
// XXX This is risky. We rely on the assumption that the scanner only uses
|
// XXX This is risky. We rely on the assumption that the scanner only uses
|
||||||
// peek() to detect the end of the buffer. Should this cause any bugs,
|
// peek() to detect the end of the buffer. Should this cause any bugs, revert.
|
||||||
// revert.
|
|
||||||
//
|
//
|
||||||
// The buffer must be zero terminated for scanner to detect its end.
|
// The buffer must be zero terminated for scanner to detect its end.
|
||||||
// if(result.decoded.empty || result.decoded.back() != '\0')
|
// if(result.decoded.empty || result.decoded.back() != '\0')
|
||||||
|
|
Loading…
Reference in a new issue