std.mem.eql not working with array of types #19929
Labels
bug
Observed behavior contradicts documented or intended behavior
standard library
This issue involves writing Zig code for the standard library.
Milestone
Zig Version
0.12.0
Steps to Reproduce and Observed Behavior
Expected Behavior
I would expect std.mem.eql to work also with
[]type
arrays, but the function always return true if the size of elements == 0, which is the case fortype
.The text was updated successfully, but these errors were encountered: