rename prepareStrMutation to prepareMutation (#17235)
* remove unnecessary when statement * remove outdated codes * rename prepareStrMutation to prepareMutation
This commit is contained in:
parent
87897fa2d6
commit
a04c9d1f62
4 changed files with 10 additions and 10 deletions
|
|
@ -81,7 +81,7 @@ func setSlice*(s: var string, slice: Slice[int]) =
|
|||
impl()
|
||||
else:
|
||||
when defined(nimSeqsV2):
|
||||
prepareStrMutation(s)
|
||||
prepareMutation(s)
|
||||
moveMem(addr s[0], addr s[first], last - first + 1)
|
||||
s.setLen(last - first + 1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue