rename prepareStrMutation to prepareMutation (#17235)

* remove unnecessary when statement

* remove outdated codes

* rename prepareStrMutation to prepareMutation
This commit is contained in:
flywind 2021-03-03 08:08:52 +08:00 • committed by GitHub
commit a04c9d1f62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View file

@ -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)