add comments back (#20256)

My bad, I shouldn't have removed it in the precedent PR.
This commit is contained in:
ringabout
2022-08-22 10:45:30 +08:00
committed by GitHub
parent 2494470459
commit fdb781c713

View File

@@ -1078,6 +1078,9 @@ proc `&`*(x: char, y: string): string {.
##
## .. code-block:: Nim
## 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.}
## Appends `y` to `x` in place.