Skip to content

Commit

Permalink
add owned as suggested by @lsh
Browse files Browse the repository at this point in the history
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
  • Loading branch information
martinvuyk committed Dec 13, 2024
1 parent 01ba6d4 commit e432ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/src/collections/string.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ struct String(

@always_inline
@implicit
fn __init__(out self, impl: List[Byte, *_]):
fn __init__(out self, owned impl: List[Byte, *_]):
"""Construct a string from a buffer of null-terminated bytes, copying
the allocated data. Use the transfer operator `^` to avoid the copy.
Expand Down

0 comments on commit e432ae3

Please sign in to comment.