diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2020-03-04 06:27:52 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 10:27:52 +0100 |
commit | 0809098971080674f723cb219722487e42011fd1 (patch) | |
tree | f3447a6c7c5996d2ec82acbbbbc64a148b71fd9d /nimpretty | |
parent | 9fa070b1dc566c23b9f8c1684d33b63e9ed3b3c4 (diff) | |
download | Nim-0809098971080674f723cb219722487e42011fd1.tar.gz |
Nimpretty Fix negative indent breaks code (#13580)
Diffstat (limited to 'nimpretty')
-rw-r--r-- | nimpretty/nimpretty.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nimpretty/nimpretty.nim b/nimpretty/nimpretty.nim index 95f428598..50d0d725f 100644 --- a/nimpretty/nimpretty.nim +++ b/nimpretty/nimpretty.nim @@ -44,8 +44,8 @@ proc writeVersion() = type PrettyOptions = object - indWidth: int - maxLineLen: int + indWidth: Natural + maxLineLen: Positive proc prettyPrint(infile, outfile: string, opt: PrettyOptions) = var conf = newConfigRef() |