mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 06:43:07 +00:00
Remove incorrect statements that the source argument to @memcpy needs to be mutable
This commit is contained in:
parent
05268bb967
commit
2ce9122a00
@ -8695,10 +8695,9 @@ test "integer cast panic" {
|
|||||||
<p>{#syntax#}dest{#endsyntax#} must be a mutable slice, a mutable pointer to an array, or
|
<p>{#syntax#}dest{#endsyntax#} must be a mutable slice, a mutable pointer to an array, or
|
||||||
a mutable many-item {#link|pointer|Pointers#}. It may have any
|
a mutable many-item {#link|pointer|Pointers#}. It may have any
|
||||||
alignment, and it may have any element type.</p>
|
alignment, and it may have any element type.</p>
|
||||||
<p>Likewise, {#syntax#}source{#endsyntax#} must be a mutable slice, a
|
<p>{#syntax#}source{#endsyntax#} must be a slice, a pointer to
|
||||||
mutable pointer to an array, or a mutable many-item
|
an array, or a many-item {#link|pointer|Pointers#}. It may
|
||||||
{#link|pointer|Pointers#}. It may have any alignment, and it may have any
|
have any alignment, and it may have any element type.</p>
|
||||||
element type.</p>
|
|
||||||
<p>The {#syntax#}source{#endsyntax#} element type must support {#link|Type Coercion#}
|
<p>The {#syntax#}source{#endsyntax#} element type must support {#link|Type Coercion#}
|
||||||
into the {#syntax#}dest{#endsyntax#} element type. The element types may have
|
into the {#syntax#}dest{#endsyntax#} element type. The element types may have
|
||||||
different ABI size, however, that may incur a performance penalty.</p>
|
different ABI size, however, that may incur a performance penalty.</p>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user