mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
17 lines
205 B
Zig
17 lines
205 B
Zig
const Node = struct {
|
|
next: ?*Node,
|
|
name: []const u8,
|
|
};
|
|
|
|
var node_a = Node{
|
|
.next = null,
|
|
.name = "Node A",
|
|
};
|
|
|
|
var node_b = Node{
|
|
.next = &node_a,
|
|
.name = "Node B",
|
|
};
|
|
|
|
// syntax
|