document compiler procs regarding & (#20257)

This commit is contained in:
ringabout 2022-08-22 16:11:43 +08:00 • committed by GitHub
commit 8fc19b9e12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -1197,7 +1197,7 @@ proc strLoc(p: BProc; d: TLoc): Rope =
proc genStrConcat(p: BProc, e: PNode, d: var TLoc) =
# <Nim code>
# s = 'Hello ' & name & ', how do you feel?' & 'z'
# s = "Hello " & name & ", how do you feel?" & 'z'
#
# <generated C code>
# {
@ -1240,7 +1240,7 @@ proc genStrConcat(p: BProc, e: PNode, d: var TLoc) =
proc genStrAppend(p: BProc, e: PNode, d: var TLoc) =
# <Nim code>
# s &= 'Hello ' & name & ', how do you feel?' & 'z'
# s &= "Hello " & name & ", how do you feel?" & 'z'
# // BUG: what if s is on the left side too?
# <generated C code>
# {