From 6ee4e70b80c6a492fce4b3b347ee09b13855a53b Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 26 Oct 2023 07:44:17 +0800 Subject: [PATCH] fixes #22867; fixes cstring modification example on Nim Manual fixes #22867 --- doc/manual.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/manual.md b/doc/manual.md index 8f419705efd32..0e447fd123d35 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 ```