clean up gc:arc or gc:orc in docs and in error messages (#22408)

* clean up gc:arc/orc in docs

* in error messages
This commit is contained in:
ringabout
2023-08-08 17:55:18 +08:00
committed by GitHub
parent bf5d173bc6
commit 10a6e4c236
6 changed files with 14 additions and 14 deletions

View File

@@ -2621,7 +2621,7 @@ proc genMagicExpr(p: BProc, e: PNode, d: var TLoc, op: TMagic) =
of mDeepCopy:
if p.config.selectedGC in {gcArc, gcAtomicArc, gcOrc} and optEnableDeepCopy notin p.config.globalOptions:
localError(p.config, e.info,
"for --gc:arc|orc 'deepcopy' support has to be enabled with --deepcopy:on")
"for --mm:arc|atomicArc|orc 'deepcopy' support has to be enabled with --deepcopy:on")
var a, b: TLoc = default(TLoc)
let x = if e[1].kind in {nkAddr, nkHiddenAddr}: e[1][0] else: e[1]