From 6addaa4cbee01193d4107d18ba4e670f4a809778 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Tue, 29 Jul 2014 02:52:01 +0200 Subject: [PATCH] Better comment. --- source/dyaml/reader.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index 79338a0..06a3ab9 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -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[]),