fix copy/paste error in AllocWithOptionaPayload

master
Jonathan Marler 2020-05-06 23:08:08 -06:00
parent b336dda076
commit 0c7397b49f
1 changed files with 2 additions and 2 deletions

View File

@ -124,9 +124,9 @@ pub const Allocator = struct {
fn AllocWithOptionsPayload(comptime Elem: type, comptime alignment: ?u29, comptime sentinel: ?Elem) type {
if (sentinel) |s| {
return [:s]align(alignment orelse @alignOf(T)) Elem;
return [:s]align(alignment orelse @alignOf(Elem)) Elem;
} else {
return []align(alignment orelse @alignOf(T)) Elem;
return []align(alignment orelse @alignOf(Elem)) Elem;
}
}