diff options
author | Radu Oana <radu.oana@ericsson.com> | 2015-09-30 09:49:22 -0400 |
---|---|---|
committer | Radu Oana <radu.oana@ericsson.com> | 2015-09-30 09:49:22 -0400 |
commit | 4bba8e026a266dd7ab0622ce580b517078516cd9 (patch) | |
tree | 72708f699e8f17e7f750ca7c170235a81fbb5f5a /lib | |
parent | 374b65289c258b2c33f6087b87b336dc5908b9d9 (diff) | |
download | Nim-4bba8e026a266dd7ab0622ce580b517078516cd9.tar.gz |
use const instead of let
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/streams.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/streams.nim b/lib/pure/streams.nim index 88ac626a6..38e91fee4 100644 --- a/lib/pure/streams.nim +++ b/lib/pure/streams.nim @@ -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: |