use const instead of let

This commit is contained in:
Radu Oana
2015-09-30 09:49:22 -04:00
parent 374b65289c
commit 4bba8e026a

View File

@@ -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: