authorgravatar for 119271574+notcancername@users.noreply.github.comnotcancername <119271574+notcancername@users.noreply.github.com> 2023-05-14 00:02:41+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-05-14 04:40:36-07:00
log2ce9122a009efa0a5d2857a0d29ad3d77a81dff1
tree5d58858d30816ca4fb0c0f45b52f4084af946325
parent05268bb9677ef0545cca6c788169b2707842dc8d

Remove incorrect statements that the `source` argument to @memcpy needs to be mutable


1 files changed, 3 insertions(+), 4 deletions(-)

doc/langref.html.in+3-4
...@@ -8695,10 +8695,9 @@ test "integer cast panic" {...@@ -8695,10 +8695,9 @@ test "integer cast panic" {
8695 <p>{#syntax#}dest{#endsyntax#} must be a mutable slice, a mutable pointer to an array, or8695 <p>{#syntax#}dest{#endsyntax#} must be a mutable slice, a mutable pointer to an array, or
8696 a mutable many-item {#link|pointer|Pointers#}. It may have any8696 a mutable many-item {#link|pointer|Pointers#}. It may have any
8697 alignment, and it may have any element type.</p>8697 alignment, and it may have any element type.</p>
8698 <p>Likewise, {#syntax#}source{#endsyntax#} must be a mutable slice, a8698 <p>{#syntax#}source{#endsyntax#} must be a slice, a pointer to
8699 mutable pointer to an array, or a mutable many-item8699 an array, or a many-item {#link|pointer|Pointers#}. It may
8700 {#link|pointer|Pointers#}. It may have any alignment, and it may have any8700 have any alignment, and it may have any element type.</p>
8701 element type.</p>
8702 <p>The {#syntax#}source{#endsyntax#} element type must support {#link|Type Coercion#}8701 <p>The {#syntax#}source{#endsyntax#} element type must support {#link|Type Coercion#}
8703 into the {#syntax#}dest{#endsyntax#} element type. The element types may have8702 into the {#syntax#}dest{#endsyntax#} element type. The element types may have
8704 different ABI size, however, that may incur a performance penalty.</p>8703 different ABI size, however, that may incur a performance penalty.</p>