use const instead of let
This commit is contained in:
parent
374b65289c
commit
4bba8e026a
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ proc readData*(s: Stream, buffer: pointer, bufLen: int): int =
|
|||
|
||||
proc readAll*(s: Stream): string =
|
||||
## Reads all available data.
|
||||
let bufferSize = 1000
|
||||
const bufferSize = 1000
|
||||
result = newString(bufferSize)
|
||||
var r = 0
|
||||
while true:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue