authorgravatar for marc@tiehu.isMarc Tiehuis <marc@tiehu.is> 2018-08-18 12:06:25+12:00
committergravatar for marc@tiehu.isMarc Tiehuis <marc@tiehu.is> 2018-08-18 12:06:25+12:00
log1da93caced5511d5b2d666fe40c5db108580e2aa
treecd8e64d8013af47166e6369bf1b241013ff43837
parent4c95b2f9d1c6fd020c484fef53f796448203fb12

docs: correct @memcpy, @memset function signatures


1 files changed, 2 insertions(+), 2 deletions(-)

doc/langref.html.in+2-2
...@@ -5528,7 +5528,7 @@ fn add(a: i32, b: i32) i32 { return a + b; }...@@ -5528,7 +5528,7 @@ fn add(a: i32, b: i32) i32 { return a + b; }
5528 <p>Returns the field type of a struct or union.</p>5528 <p>Returns the field type of a struct or union.</p>
5529 {#header_close#}5529 {#header_close#}
5530 {#header_open|@memcpy#}5530 {#header_open|@memcpy#}
5531 <pre><code class="zig">@memcpy(noalias dest: *u8, noalias source: *const u8, byte_count: usize)</code></pre>5531 <pre><code class="zig">@memcpy(noalias dest: [*]u8, noalias source: [*]const u8, byte_count: usize)</code></pre>
5532 <p>5532 <p>
5533 This function copies bytes from one region of memory to another. <code>dest</code> and5533 This function copies bytes from one region of memory to another. <code>dest</code> and
5534 <code>source</code> are both pointers and must not overlap.5534 <code>source</code> are both pointers and must not overlap.
...@@ -5546,7 +5546,7 @@ fn add(a: i32, b: i32) i32 { return a + b; }...@@ -5546,7 +5546,7 @@ fn add(a: i32, b: i32) i32 { return a + b; }
5546mem.copy(u8, dest[0...byte_count], source[0...byte_count]);</code></pre>5546mem.copy(u8, dest[0...byte_count], source[0...byte_count]);</code></pre>
5547 {#header_close#}5547 {#header_close#}
5548 {#header_open|@memset#}5548 {#header_open|@memset#}
5549 <pre><code class="zig">@memset(dest: *u8, c: u8, byte_count: usize)</code></pre>5549 <pre><code class="zig">@memset(dest: [*]u8, c: u8, byte_count: usize)</code></pre>
5550 <p>5550 <p>
5551 This function sets a region of memory to <code>c</code>. <code>dest</code> is a pointer.5551 This function sets a region of memory to <code>c</code>. <code>dest</code> is a pointer.
5552 </p>5552 </p>