fix comment in the Nim manual (#20234)

fix comment

there is no `y` in the example.
This commit is contained in:
Judd
2022-08-17 09:48:52 +08:00
committed by GitHub
parent 9f408ea943
commit 60f6724b70

View File

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