add comments back (#20256)
My bad, I shouldn't have removed it in the precedent PR.
This commit is contained in:
parent
2494470459
commit
fdb781c713
1 changed files with 3 additions and 0 deletions
|
|
@ -1078,6 +1078,9 @@ proc `&`*(x: char, y: string): string {.
|
||||||
##
|
##
|
||||||
## .. code-block:: Nim
|
## .. code-block:: Nim
|
||||||
## assert('a' & "bc" == "abc")
|
## assert('a' & "bc" == "abc")
|
||||||
|
|
||||||
|
# implementation note: These must all have the same magic value "ConStrStr" so
|
||||||
|
# that the merge optimization works properly.
|
||||||
|
|
||||||
proc add*(x: var string, y: char) {.magic: "AppendStrCh", noSideEffect.}
|
proc add*(x: var string, y: char) {.magic: "AppendStrCh", noSideEffect.}
|
||||||
## Appends `y` to `x` in place.
|
## Appends `y` to `x` in place.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue