fix https://github.com/nim-lang/RFCs/issues/311 remove unary slice (#16714)
This commit is contained in:
parent
3b80f0dc8e
commit
ad67bcf379
5 changed files with 9 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue