From fdb781c71398722239bc28b86f3d279192535646 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 22 Aug 2022 10:45:30 +0800 Subject: [PATCH] add comments back (#20256) My bad, I shouldn't have removed it in the precedent PR. --- lib/system.nim | 3 +++ 1 file changed, 3 insertions(+) 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.