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
commit 60f6724b70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6443,7 +6443,7 @@ passing `typeOfProc` as the second argument to `typeof`:
iterator split(s: string): string = discard iterator split(s: string): string = discard
proc split(s: string): seq[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) is string
assert typeof("a b c".split, typeOfProc) is seq[string] assert typeof("a b c".split, typeOfProc) is seq[string]