changed type() to typeof() in docs and error messages (#14084)

This commit is contained in:
hlaaftana 2020-04-24 10:22:12 +03:00 • committed by GitHub
commit b2141fc2a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 13 deletions

View file

@ -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])