Better comment.

This commit is contained in:
Ferdinand Majerech 2014-07-29 02:52:01 +02:00
parent 634418b599
commit 6addaa4cbe

View file

@ -107,7 +107,8 @@ final class Reader
}
buffer_ = decodeResult.decoded;
// The part of buffer_ excluding trailing zeroes.
// Check that excluding any trailing zeroes, all character in buffer are
// printable.
auto noZeros = buffer_;
while(!noZeros.empty && noZeros.back == '\0') { noZeros.popBack(); }
enforce(printable(noZeros[]),