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
|
|
@ -15,7 +15,7 @@ but expression 'nesting + 1' is of type: int
|
|||
# line 15
|
||||
func default(T: typedesc[array]): T = discard
|
||||
doAssert default(array[3, int]) == [0, 0, 0]
|
||||
func shapeBad*[T: not char](s: openarray[T], rank: static[int], nesting = 0, parent_shape = default(array[rank, int])): array[rank, int] =
|
||||
func shapeBad*[T: not char](s: openArray[T], rank: static[int], nesting = 0, parent_shape = default(array[rank, int])): array[rank, int] =
|
||||
result = parent_shape
|
||||
result[nesting] = s.len
|
||||
when (T is seq|array):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue