diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index f3af17aa30..24449f5e39 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -10509,8 +10509,8 @@ test "using an allocator" { fn concat(allocator: Allocator, a: []const u8, b: []const u8) ![]u8 { const result = try allocator.alloc(u8, a.len + b.len); - std.mem.copy(u8, result, a); - std.mem.copy(u8, result[a.len..], b); + @memcpy(result[0..a.len], a); + @memcpy(result[a.len..], b); return result; } {#code_end#} |
