Merge pull request #4260 from abudden/formatSizeNoSideEffect

Added missing noSideEffect pragma
This commit is contained in:
Dominik Picheta 2016-06-02 11:54:19 +01:00
commit 188da1b31f

View file

@ -1488,7 +1488,7 @@ type
proc formatSize*(bytes: int64, proc formatSize*(bytes: int64,
decimalSep = '.', decimalSep = '.',
prefix = bpIEC, prefix = bpIEC,
includeSpace = false): string = includeSpace = false): string {.noSideEffect.} =
## Rounds and formats `bytes`. ## Rounds and formats `bytes`.
## ##
## By default, uses the IEC/ISO standard binary prefixes, so 1024 will be ## By default, uses the IEC/ISO standard binary prefixes, so 1024 will be