Whitespace and assert improvements in Reader.

This commit is contained in:
Ferdinand Majerech 2014-07-19 15:39:27 +02:00
parent 2332290950
commit a990771991

View file

@ -512,7 +512,8 @@ struct UTFBlockDecoder(size_t bufferSize_) if (bufferSize_ % 2 == 0)
// Read and decode characters from file and store them in the buffer.
void updateBuffer() @trusted
{
assert(buffer_.length == 0);
assert(buffer_.length == 0,
"updateBuffer can only be called when the buffer is empty");
final switch(encoding_)
{
case Encoding.UTF_8: