lets try another one

main
Anastasia Kisner 2024-11-08 21:03:04 +01:00
parent 0c0d74c00e
commit c118f0fc7d
1 changed files with 3 additions and 2 deletions

View File

@ -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();
}