fix comment in the Nim manual (#20234)
fix comment there is no `y` in the example.
This commit is contained in:
parent
9f408ea943
commit
60f6724b70
1 changed files with 1 additions and 1 deletions
|
|
@ -6443,7 +6443,7 @@ passing `typeOfProc` as the second argument to `typeof`:
|
|||
iterator split(s: string): string = discard
|
||||
proc split(s: string): seq[string] = discard
|
||||
|
||||
# since an iterator is the preferred interpretation, `y` has the type `string`:
|
||||
# since an iterator is the preferred interpretation, this has the type `string`:
|
||||
assert typeof("a b c".split) is string
|
||||
|
||||
assert typeof("a b c".split, typeOfProc) is seq[string]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue