Nimpretty Fix negative indent breaks code (#13580)

This commit is contained in:
Juan Carlos
2020-03-04 06:27:52 -03:00
committed by GitHub
parent 9fa070b1dc
commit 0809098971
2 changed files with 3 additions and 2 deletions

View File

@@ -126,6 +126,7 @@
### Tool changes
- Fix Nimpretty must not accept negative indentation argument because breaks file.
### Compiler changes

View File

@@ -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()