zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a2542979532c35ff76b753b7a6958f1f2e400e80 (tree)
parent 69ff89fd1207bc95adf7a349319973c6070ce540
Author: Isaac Freund <ifreund@ifreund.xyz>
Date:   Fri, 12 Jun 2020 17:58:43 +0200

docs: fix mention of deprecated ArrayList.span()

Diffstat:
Mdoc/langref.html.in | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/langref.html.in b/doc/langref.html.in @@ -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>