style usages part one (openarray => openArray) (#19321)
* style usages (openArray) * revert doc changes
This commit is contained in:
parent
1869826668
commit
9df195ef58
49 changed files with 76 additions and 76 deletions
|
|
@ -39,7 +39,7 @@ template main2 = # bug #15958
|
|||
p[] = 20.0
|
||||
doAssert byLent(p)[] == 20.0
|
||||
|
||||
proc byLent2[T](a: openarray[T]): lent T = a[0]
|
||||
proc byLent2[T](a: openArray[T]): lent T = a[0]
|
||||
doAssert byLent2(a) == 11
|
||||
doAssert byLent2(a).unsafeAddr == a[0].unsafeAddr
|
||||
doAssert byLent2(b) == 21
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue