mirror of
https://github.com/ziglang/zig.git
synced 2025-02-10 22:50:18 +00:00
docs: fix mention of deprecated ArrayList.span()
This commit is contained in:
parent
69ff89fd12
commit
a254297953
@ -9293,8 +9293,8 @@ test "string literal to constant slice" {
|
||||
the function will accept an {#syntax#}*Allocator{#endsyntax#} parameter.
|
||||
</p>
|
||||
<p>
|
||||
Sometimes the lifetime of a pointer may be more complicated. For example, when using
|
||||
{#syntax#}std.ArrayList(T).span(){#endsyntax#}, the returned slice has a lifetime that remains
|
||||
Sometimes the lifetime of a pointer may be more complicated. For example, the
|
||||
{#syntax#}std.ArrayList(T).items{#endsyntax#} slice has a lifetime that remains
|
||||
valid until the next time the list is resized, such as by appending new elements.
|
||||
</p>
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user