mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +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
|