[ci skip] docfix .. < => ..< (#12981) [backport]
This commit is contained in:
parent
21ea1094ef
commit
8c19372690
1 changed files with 1 additions and 1 deletions
|
|
@ -645,7 +645,7 @@ is possible, and actually an idiom:
|
||||||
:test: "nim c $1"
|
:test: "nim c $1"
|
||||||
proc printSeq(s: seq, nprinted: int = -1) =
|
proc printSeq(s: seq, nprinted: int = -1) =
|
||||||
var nprinted = if nprinted == -1: s.len else: min(nprinted, s.len)
|
var nprinted = if nprinted == -1: s.len else: min(nprinted, s.len)
|
||||||
for i in 0 .. <nprinted:
|
for i in 0 ..< nprinted:
|
||||||
echo s[i]
|
echo s[i]
|
||||||
|
|
||||||
If the procedure needs to modify the argument for the
|
If the procedure needs to modify the argument for the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue