| author | |
| committer | |
| log | 92a423739d91bd0677940fc1a86b593649cafaa6 |
| tree | f290c16bc84254da82eae5a752072f4b69a52f63 |
| parent | a5af78c376fc41424b81ea83766b38a0a1d17870 |
1 files changed, 3 insertions(+), 0 deletions(-)
lib/std/mem.zig+3| ... | ... | @@ -341,6 +341,9 @@ pub fn zeroes(comptime T: type) T { |
| 341 | 341 | } |
| 342 | 342 | }, |
| 343 | 343 | .Array => |info| { |
| 344 | if (info.sentinel) |sentinel| { | |
| 345 | return [_:info.sentinel]info.child{zeroes(info.child)} ** info.len; | |
| 346 | } | |
| 344 | 347 | return [_]info.child{zeroes(info.child)} ** info.len; |
| 345 | 348 | }, |
| 346 | 349 | .Vector, |