mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
Oops, had committed WIP exercise
This commit is contained in:
parent
be349dae5d
commit
9d52c769d5
1 changed files with 0 additions and 20 deletions
|
@ -1,20 +0,0 @@
|
|||
//
|
||||
// Perhaps you have been wondering why we have always called 'suspend'
|
||||
// with an expression in the form of an empty block:
|
||||
//
|
||||
// suspend {}
|
||||
//
|
||||
// well,
|
||||
//
|
||||
const print = @import("std").debug.print;
|
||||
|
||||
pub fn main() void {
|
||||
|
||||
var my_beef = getBeef(0);
|
||||
|
||||
print("beef? {X}!\n", .{my_beef});
|
||||
}
|
||||
|
||||
fn getBeef(input: u32) u32 {
|
||||
suspend {}
|
||||
}
|
Loading…
Reference in a new issue