Cosmetic compiler cleanup (#12718)
* Cleanup compiler code base
* Unify add calls
* Unify len invocations
* Unify range operators
* Fix oversight
* Remove {.procvar.} pragma
* initCandidate -> newCandidate where reasonable
* Unify safeLen calls
This commit is contained in:
parent
b662842bd0
commit
7e747d11c6
109 changed files with 6115 additions and 6254 deletions
|
|
@ -174,7 +174,7 @@ const
|
|||
]
|
||||
|
||||
proc findStr*(a: openArray[string], s: string): int =
|
||||
for i in low(a) .. high(a):
|
||||
for i in low(a)..high(a):
|
||||
if cmpIgnoreStyle(a[i], s) == 0:
|
||||
return i
|
||||
result = - 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue