From fe19670c5227e73733a1fe44d4bc6fb7c13d512e Mon Sep 17 00:00:00 2001 From: Yasuhiro Horimoto Date: Wed, 10 Oct 2018 02:30:03 +0900 Subject: [PATCH] Fixes #8841 (#9101) Modify comments for readChar and peekChar to the same as the comment for them in the source code. --- lib/pure/streams.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pure/streams.nim b/lib/pure/streams.nim index 09626136f1..9950c58778 100644 --- a/lib/pure/streams.nim +++ b/lib/pure/streams.nim @@ -158,12 +158,12 @@ proc peek[T](s: Stream, result: var T) = proc readChar*(s: Stream): char = ## reads a char from the stream `s`. Raises `EIO` if an error occurred. - ## Returns '\0' as an EOF marker. + ## Returns '\\0' as an EOF marker. if readData(s, addr(result), sizeof(result)) != 1: result = '\0' proc peekChar*(s: Stream): char = ## peeks a char from the stream `s`. Raises `EIO` if an error occurred. - ## Returns '\0' as an EOF marker. + ## Returns '\\0' as an EOF marker. if peekData(s, addr(result), sizeof(result)) != 1: result = '\0' proc readBool*(s: Stream): bool =