mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
11 lines
180 B
Zig
11 lines
180 B
Zig
const Example = struct { x: u8, y: u8 };
|
|
|
|
pub fn main() u8 {
|
|
var example: Example = .{ .x = 5, .y = 10 };
|
|
_ = &example;
|
|
return example.y + example.x - 15;
|
|
}
|
|
|
|
// run
|
|
//
|