Skip to content

Commit

Permalink
fixes #22867; fixes cstring modification example on Nim Manual
Browse files Browse the repository at this point in the history
fixes #22867
  • Loading branch information
ringabout authored Oct 25, 2023
1 parent 7c3917d commit 6ee4e70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit 6ee4e70

Please sign in to comment.