mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 04:57:49 +00:00
Modify comments for readChar and peekChar to the same as the comment for them in the source code.
(cherry picked from commit fe19670c52)
This commit is contained in:
committed by
narimiran
parent
1e1a43dd23
commit
f2a44aa8cf
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user