Rename = to =copy in stdlib (#17781)

This commit is contained in:
Clyybber 2021-04-19 13:16:10 +02:00 • committed by GitHub
commit 6de5aa1971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View file

@ -37,7 +37,7 @@ proc `=destroy`*(s: SharedString) =
decRef(s.buffer)
when false:
proc `=`*(dest: var SharedString; src: SharedString) =
proc `=copy`*(dest: var SharedString; src: SharedString) =
incRef(src.buffer)
if not dest.buffer.isNil:
decRef(dest.buffer)