zig/doc
Ryan Liptak 73a444766e langref: Make pointer_coerce_const_optional test less obfuscated
This test was originally introduced in 5f38d6e2e9, where it looked like this:

    test "cast *[1][*]const u8 to [*]const ?[*]const u8" {
        const window_name = [1][*]const u8{c"window name"};
        const x: [*]const ?[*]const u8 = &window_name;
        assert(mem.eql(u8, std.cstr.toSliceConst(x[0].?), "window name"));
    }

Over the years, this has become more and more obfuscated, to the point that the verbosity of the `expect` call overshadows the point of the example. This commit intends to update this test to match the spirit of the original version of the test, while shedding the obfuscation.
2024-07-29 16:07:12 -07:00
..
langref langref: Make pointer_coerce_const_optional test less obfuscated 2024-07-29 16:07:12 -07:00
build.zig.zon.md seriously people, don't put "zig-" in your package names 2024-06-05 15:49:47 -07:00
langref.html.in improve @enumFromInt doc (#20354) 2024-07-21 02:41:43 -07:00