mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 06:03:09 -05:00
commit
d2b4e7a87b
2 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ const Color = enum(u32) {
|
|||
};
|
||||
|
||||
pub fn main() void {
|
||||
// Remeber Zig's multi-line strings? Here they are again.
|
||||
// Remember Zig's multi-line strings? Here they are again.
|
||||
// Also, check out this cool format string:
|
||||
//
|
||||
// {x:0>6}
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
//
|
||||
// into this:
|
||||
//
|
||||
// point1 = Point{ .x=3, .y=16, .y=27 };
|
||||
// point2 = Point{ .x=7, .y=13, .y=34 };
|
||||
// point1 = Point{ .x=3, .y=16, .z=27 };
|
||||
// point2 = Point{ .x=7, .y=13, .z=34 };
|
||||
//
|
||||
// The Point above is an example of a "struct" (short for "structure").
|
||||
// Here's how it could have been defined:
|
||||
|
|
Loading…
Reference in a new issue