diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-04-19 19:02:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-19 19:02:52 -0700 |
commit | ad67bcf379dbe5b7b17d85e28620749cd8bcf5e9 (patch) | |
tree | 354318bcac2683d81eb79a9d64a296a33e29dd33 /testament | |
parent | 3b80f0dc8ef2bc9d2a981a7c92a6355dfc72b7ef (diff) | |
download | Nim-ad67bcf379dbe5b7b17d85e28620749cd8bcf5e9.tar.gz |
fix https://github.com/nim-lang/RFCs/issues/311 remove unary slice (#16714)
Diffstat (limited to 'testament')
-rw-r--r-- | testament/categories.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testament/categories.nim b/testament/categories.nim index d05112a25..d7848d51d 100644 --- a/testament/categories.nim +++ b/testament/categories.nim @@ -339,7 +339,7 @@ proc findMainFile(dir: string): string = var nimFiles = 0 for kind, file in os.walkDir(dir): if kind == pcFile: - if file.endsWith(cfgExt): return file[ .. ^(cfgExt.len+1)] & ".nim" + if file.endsWith(cfgExt): return file[0..^(cfgExt.len+1)] & ".nim" elif file.endsWith(".nim"): if result.len == 0: result = file inc nimFiles |