diff options
author | Araq <rumpf_a@web.de> | 2019-07-10 12:42:23 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-10 12:42:41 +0200 |
commit | c94647aecad6ed7fd12152800437a6cda11e06e6 (patch) | |
tree | f876ae0ac6379dfd99fd5d5ed7d8903be96b433b /lib/pure/strformat.nim | |
parent | 96523cdd3e8ada367b804efbd47f4763a1269fa8 (diff) | |
download | Nim-c94647aecad6ed7fd12152800437a6cda11e06e6.tar.gz |
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
Diffstat (limited to 'lib/pure/strformat.nim')
-rw-r--r-- | lib/pure/strformat.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/strformat.nim b/lib/pure/strformat.nim index fdf1753a8..d3026165a 100644 --- a/lib/pure/strformat.nim +++ b/lib/pure/strformat.nim @@ -505,7 +505,7 @@ proc formatValue*(result: var string; value: string; specifier: string) = "invalid type in format string for string, expected 's', but got " & spec.typ) if spec.precision != -1: - if spec.precision < runelen(value): + if spec.precision < runeLen(value): setLen(value, runeOffset(value, spec.precision)) result.add alignString(value, spec.minimumWidth, spec.align, spec.fill) |