style usages part one (openarray => openArray) (#19321)

* style usages (openArray)

* revert doc changes
This commit is contained in:
flywind 2022-01-04 20:29:50 +08:00 • committed by GitHub
commit 9df195ef58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 76 additions and 76 deletions

View file

@ -68,7 +68,7 @@ doAssert yy == ""
proc bar(arg: cstring) =
doAssert arg[0] == '\0'
proc baz(arg: openarray[char]) =
proc baz(arg: openArray[char]) =
doAssert arg.len == 0
proc stringCompare() =

View file

@ -131,12 +131,12 @@ let str = "0123456789"
foo(toOpenArrayByte(str, 0, str.high))
template boundedOpenArray[T](x: seq[T], first, last: int): openarray[T] =
template boundedOpenArray[T](x: seq[T], first, last: int): openArray[T] =
toOpenarray(x, max(0, first), min(x.high, last))
# bug #9281
proc foo[T](x: openarray[T]) =
proc foo[T](x: openArray[T]) =
echo x.len
let a = @[1, 2, 3]