mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
fix comment in the Nim manual (#20234)
fix comment there is no `y` in the example.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user