Merge pull request #5595 from ifreund/doc-arraylist-fix

docs: fix mention of deprecated ArrayList.span()
This commit is contained in:
Veikka Tuominen 2020-06-12 19:10:47 +03:00 committed by GitHub
commit 7d8fd45267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9336,8 +9336,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>