mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 22:33:49 +00:00
add comments back (#20256)
My bad, I shouldn't have removed it in the precedent PR.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user