zig fmt
This commit is contained in:
parent
88886a37d9
commit
f6de68a1f2
10 changed files with 20 additions and 20 deletions
|
|
@ -13,14 +13,14 @@
|
|||
//
|
||||
const print = @import("std").debug.print;
|
||||
|
||||
pub fn main() void {
|
||||
pub fn main() void {
|
||||
// Here we declare arrays of three different types and sizes
|
||||
// at compile time from a function call. Neat!
|
||||
const s1 = makeSequence(u8, 3); // creates a [3]u8
|
||||
const s2 = makeSequence(u32, 5); // creates a [5]u32
|
||||
const s3 = makeSequence(i64, 7); // creates a [7]i64
|
||||
|
||||
print("s1={any}, s2={any}, s3={any}\n", .{s1, s2, s3});
|
||||
print("s1={any}, s2={any}, s3={any}\n", .{ s1, s2, s3 });
|
||||
}
|
||||
|
||||
// This function is pretty wild because it executes at runtime
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue