Concatenates was misspelled

This commit is contained in:
flaviut 2014-04-08 18:29:02 -04:00
commit 0dffbd66bb

View file

@ -842,25 +842,25 @@ proc newStringOfCap*(cap: int): string {.
proc `&` * (x: string, y: char): string {. proc `&` * (x: string, y: char): string {.
magic: "ConStrStr", noSideEffect, merge.} magic: "ConStrStr", noSideEffect, merge.}
## Concatinates `x` with `y` ## Concatenates `x` with `y`
## ##
## .. code-block:: Nimrod ## .. code-block:: Nimrod
## assert("ab" & 'c' == "abc") ## assert("ab" & 'c' == "abc")
proc `&` * (x: char, y: char): string {. proc `&` * (x: char, y: char): string {.
magic: "ConStrStr", noSideEffect, merge.} magic: "ConStrStr", noSideEffect, merge.}
## Concatinates `x` and `y` into a string ## Concatenates `x` and `y` into a string
## ##
## .. code-block:: Nimrod ## .. code-block:: Nimrod
## assert('a' & 'b' == "ab") ## assert('a' & 'b' == "ab")
proc `&` * (x, y: string): string {. proc `&` * (x, y: string): string {.
magic: "ConStrStr", noSideEffect, merge.} magic: "ConStrStr", noSideEffect, merge.}
## Concatinates `x` and `y` ## Concatenates `x` and `y`
## ##
## .. code-block:: Nimrod ## .. code-block:: Nimrod
## assert("ab" & "cd" == "abcd") ## assert("ab" & "cd" == "abcd")
proc `&` * (x: char, y: string): string {. proc `&` * (x: char, y: string): string {.
magic: "ConStrStr", noSideEffect, merge.} magic: "ConStrStr", noSideEffect, merge.}
## Concatinates `x` with `y` ## Concatenates `x` with `y`
## ##
## .. code-block:: Nimrod ## .. code-block:: Nimrod
## assert('a' & "bc" == "abc") ## assert('a' & "bc" == "abc")
@ -877,7 +877,7 @@ proc add*(x: var string, y: char) {.magic: "AppendStrCh", noSideEffect.}
## tmp.add('b') ## tmp.add('b')
## assert(tmp == "ab") ## assert(tmp == "ab")
proc add*(x: var string, y: string) {.magic: "AppendStrStr", noSideEffect.} proc add*(x: var string, y: string) {.magic: "AppendStrStr", noSideEffect.}
## Concatinates `x` and `y` in place ## Concatenates `x` and `y` in place
## ##
## .. code-block:: Nimrod ## .. code-block:: Nimrod
## var tmp = "" ## var tmp = ""
@ -1610,7 +1610,7 @@ proc `@`*[T](a: openArray[T]): seq[T] =
for i in 0..a.len-1: result[i] = a[i] for i in 0..a.len-1: result[i] = a[i]
proc `&` *[T](x, y: seq[T]): seq[T] {.noSideEffect.} = proc `&` *[T](x, y: seq[T]): seq[T] {.noSideEffect.} =
## Concatinates two sequences. ## Concatenates two sequences.
## Requires copying of the sequences. ## Requires copying of the sequences.
## ##
## .. code-block:: Nimrod ## .. code-block:: Nimrod