fix several typos in documentation and comments (#12553)
This commit is contained in:
parent
1214960a1b
commit
34dbc5699e
29 changed files with 37 additions and 37 deletions
|
|
@ -1361,7 +1361,7 @@ when isMainModule:
|
|||
doAssert foo1(openArray[int]([identity(1), identity(2)])) == @[10, 20]
|
||||
doAssert counter == 2
|
||||
|
||||
# Corner cases (openArray litterals should not be common)
|
||||
# Corner cases (openArray literals should not be common)
|
||||
template foo2(x: openArray[int]): seq[int] = x.mapIt(it * 10)
|
||||
counter = 0
|
||||
doAssert foo2(openArray[int]([identity(1), identity(2)])) == @[10, 20]
|
||||
|
|
|
|||
|
|
@ -904,7 +904,7 @@ proc `$`*[A](s: OrderedSet[A]): string =
|
|||
iterator items*[A](s: OrderedSet[A]): A =
|
||||
## Iterates over keys in the ordered set `s` in insertion order.
|
||||
##
|
||||
## If you need a sequence with the elelments you can use `sequtils.toSeq
|
||||
## If you need a sequence with the elements you can use `sequtils.toSeq
|
||||
## template <sequtils.html#toSeq.t,untyped>`_.
|
||||
##
|
||||
## .. code-block::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue