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
commit fdb781c713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.