diff --git a/stdlib/src/collections/string.mojo b/stdlib/src/collections/string.mojo index 3cc01c1ef5..46d078db9f 100644 --- a/stdlib/src/collections/string.mojo +++ b/stdlib/src/collections/string.mojo @@ -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.