mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 07:43:26 +00:00
use const instead of let
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user