add sink and lent annotations for xmltree and streams (#18037)

This commit is contained in:
Antonis Geralis 2021-05-18 09:16:07 +03:00 • committed by GitHub
commit 6e0fe965da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 16 deletions

View file

@ -1252,7 +1252,7 @@ else: # after 1.3 or JS not defined
var s = StringStream(s)
s.data = ""
proc newStringStream*(s: string = ""): owned StringStream =
proc newStringStream*(s: sink string = ""): owned StringStream =
## Creates a new stream from the string `s`.
##
## See also: