diff options
Diffstat (limited to 'lib/system/strs_v2.nim')
-rw-r--r-- | lib/system/strs_v2.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/strs_v2.nim b/lib/system/strs_v2.nim index b20457d51..2647f7dcc 100644 --- a/lib/system/strs_v2.nim +++ b/lib/system/strs_v2.nim @@ -171,7 +171,7 @@ proc nimPrepareStrMutationV2(s: var NimStringV2) {.compilerRtl, inline.} = proc prepareStrMutation*(s: var string) {.inline.} = # string literals are "copy on write", so you need to call - # `prepareStrMutation` before modifying the strings. + # `prepareStrMutation` before modifying the strings via `addr`. {.cast(noSideEffect).}: let s = unsafeAddr s nimPrepareStrMutationV2(cast[ptr NimStringV2](s)[]) |