Series exercise return type in stub is not the one expected by tests

The type in stub is slice of arrays

ErrorSetDoesNotMatter![][slice_length]u8

while the tests expect slice of slices

const expected = [_][]const u8{"1"};

Example solution returns slice of slices.

ErrorSetDoesNotMatter![][]u8

Fixing in PR #520

2 Likes

The wording mixes up slice and array. The name of the variable slice_length implies it is a slice while actually [slice_length]u8 is an array. This is not newcomer friendly.

Slice is a struct of a pointer to the data and the length of data. Array is data itself.

I beg to name the variable consistent with Zig documentation.
Nevermind, let them suffer.