diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-08-22 10:45:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 22:45:30 -0400 |
commit | fdb781c71398722239bc28b86f3d279192535646 (patch) | |
tree | 84f78faf761053803853a38696c2ca87787e5ef6 | |
parent | 24944704599ee0f6558c5cf1f7394901c5099813 (diff) | |
download | Nim-fdb781c71398722239bc28b86f3d279192535646.tar.gz |
add comments back (#20256)
My bad, I shouldn't have removed it in the precedent PR.
-rw-r--r-- | lib/system.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim index 16c498c85..041d456fb 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -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. |