mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
[ci skip] docfix .. < => ..< (#12981) [backport]
This commit is contained in:
committed by
Andreas Rumpf
parent
21ea1094ef
commit
8c19372690
@@ -645,7 +645,7 @@ is possible, and actually an idiom:
|
||||
:test: "nim c $1"
|
||||
proc printSeq(s: seq, nprinted: int = -1) =
|
||||
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]
|
||||
|
||||
If the procedure needs to modify the argument for the
|
||||
|
||||
Reference in New Issue
Block a user