changed type() to typeof() in docs and error messages (#14084)
This commit is contained in:
parent
dd5ccc3e5a
commit
b2141fc2a1
9 changed files with 13 additions and 13 deletions
|
|
@ -651,7 +651,7 @@ Example: Lifting Procs
|
|||
## # now abs(@[@[1,-2], @[-2,-3]]) == @[@[1,2], @[2,3]]
|
||||
proc fname[T](x: openarray[T]): auto =
|
||||
var temp: T
|
||||
type outType = type(fname(temp))
|
||||
type outType = typeof(fname(temp))
|
||||
result = newSeq[outType](x.len)
|
||||
for i in 0..<x.len:
|
||||
result[i] = fname(x[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue