From c118f0fc7d222ff2d658a7f069d7a31a56aec301 Mon Sep 17 00:00:00 2001 From: 3011357 <3011357@stud.hs-mannheim.de> Date: Fri, 8 Nov 2024 21:03:04 +0100 Subject: [PATCH] lets try another one --- LList.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LList.zig b/LList.zig index 2b57517..350aa08 100644 --- a/LList.zig +++ b/LList.zig @@ -18,7 +18,7 @@ pub fn LList (comptime T: type) type { pub fn Node (comptime T: type) type { return struct { const Self = @This(); - next: *Self, //? Nächste Node in der Liste + next: ?*Self, //? Nächste Node in der Liste pub fn init(this: *Self, value: T) void { @@ -33,6 +33,7 @@ pub fn Node (comptime T: type) type { } pub fn main() !void { - var testList: LLIst(u64) = undefined; + + var testList: LList(u64) = undefined; try testList.init(); } \ No newline at end of file