Modify comments for readChar and peekChar to the same as the comment for them in the source code.
This commit is contained in:
parent
a98b1a7764
commit
fe19670c52
1 changed files with 2 additions and 2 deletions
|
|
@ -158,12 +158,12 @@ proc peek[T](s: Stream, result: var T) =
|
||||||
|
|
||||||
proc readChar*(s: Stream): char =
|
proc readChar*(s: Stream): char =
|
||||||
## reads a char from the stream `s`. Raises `EIO` if an error occurred.
|
## 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'
|
if readData(s, addr(result), sizeof(result)) != 1: result = '\0'
|
||||||
|
|
||||||
proc peekChar*(s: Stream): char =
|
proc peekChar*(s: Stream): char =
|
||||||
## peeks a char from the stream `s`. Raises `EIO` if an error occurred.
|
## 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'
|
if peekData(s, addr(result), sizeof(result)) != 1: result = '\0'
|
||||||
|
|
||||||
proc readBool*(s: Stream): bool =
|
proc readBool*(s: Stream): bool =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue