authorgravatar for johnnymarler@gmail.comJonathan Marler <johnnymarler@gmail.com> 2020-05-06 23:08:08-06:00
committergravatar for johnnymarler@gmail.comJonathan Marler <johnnymarler@gmail.com> 2020-05-06 23:08:08-06:00
log0c7397b49f8c434cf1f714c08ab37d1429ab1be7
tree7caf7a831e67d795ab2a0d6f0c0f015f5d8f4250
parentb336dda0765ba345253ed4b25113a5db4386c3f0

fix copy/paste error in AllocWithOptionaPayload


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

lib/std/mem.zig+2-2
...@@ -124,9 +124,9 @@ pub const Allocator = struct {...@@ -124,9 +124,9 @@ pub const Allocator = struct {
124124
125 fn AllocWithOptionsPayload(comptime Elem: type, comptime alignment: ?u29, comptime sentinel: ?Elem) type {125 fn AllocWithOptionsPayload(comptime Elem: type, comptime alignment: ?u29, comptime sentinel: ?Elem) type {
126 if (sentinel) |s| {126 if (sentinel) |s| {
127 return [:s]align(alignment orelse @alignOf(T)) Elem;127 return [:s]align(alignment orelse @alignOf(Elem)) Elem;
128 } else {128 } else {
129 return []align(alignment orelse @alignOf(T)) Elem;129 return []align(alignment orelse @alignOf(Elem)) Elem;
130 }130 }
131 }131 }
132132