add sink and lent annotations for xmltree and streams (#18037)
This commit is contained in:
parent
fac5bae7b7
commit
6e0fe965da
2 changed files with 16 additions and 16 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue