Exercises(linked-list): fix the compiler warning

Being pointed here from an automatically closed PR exercises(linked-list): fix the compiler warning

Fix the following compiler warning when doing the practice in the CLI.

version: zig-v0.12.0-dev.2059+42389cb9c

linked-list/test_linked_list.zig:71:9: error: local variable is never mutated
    var list = List{};
        ^~~~

Merged - thanks.

As I commented in the PR: officially, the Zig track supports only Zig 0.11.0, and not 0.12.0-dev. However, it’s easy to add backward-compatible support for Zig master here.

1 Like