summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--doc/manual.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/manual.md b/doc/manual.md
index 8f419705e..0e447fd12 100644
--- a/doc/manual.md
+++ b/doc/manual.md
@@ -1495,7 +1495,8 @@ it can be modified:
 
   ```nim
   var x = "123456"
-  var s: cstring = x
+  prepareMutation(x) # call `prepareMutation` before modifying the strings
+  var s: cstring = cstring(x)
   s[0] = 'u' # This is ok
   ```