| ... | @@ -9293,8 +9293,8 @@ test "string literal to constant slice" { | ... | @@ -9293,8 +9293,8 @@ test "string literal to constant slice" { |
| 9293 | the function will accept an {#syntax#}*Allocator{#endsyntax#} parameter. | 9293 | the function will accept an {#syntax#}*Allocator{#endsyntax#} parameter. |
| 9294 | </p> | 9294 | </p> |
| 9295 | <p> | 9295 | <p> |
| 9296 | Sometimes the lifetime of a pointer may be more complicated. For example, when using | 9296 | Sometimes the lifetime of a pointer may be more complicated. For example, the |
| 9297 | {#syntax#}std.ArrayList(T).span(){#endsyntax#}, the returned slice has a lifetime that remains | 9297 | {#syntax#}std.ArrayList(T).items{#endsyntax#} slice has a lifetime that remains |
| 9298 | valid until the next time the list is resized, such as by appending new elements. | 9298 | valid until the next time the list is resized, such as by appending new elements. |
| 9299 | </p> | 9299 | </p> |
| 9300 | <p> | 9300 | <p> |