mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-09 11:40:46 -05:00
Ex 001 remove ancient script reference + wording
This commit is contained in:
parent
e2f3a5e519
commit
8a3d722a33
1 changed files with 7 additions and 7 deletions
|
@ -1,18 +1,18 @@
|
|||
//
|
||||
// Oh no! This program is supposed to print "Hello world!" but it needs
|
||||
// your help!
|
||||
// Oh no, this is supposed to print "Hello world!" but it needs
|
||||
// your help.
|
||||
//
|
||||
// Zig functions are private by default but the main() function
|
||||
// should be public.
|
||||
//
|
||||
// Zig functions are private by default but the main() function should
|
||||
// be public.
|
||||
//
|
||||
// A function is declared public with the "pub" statement like so:
|
||||
// A function is made public with the "pub" statement like so:
|
||||
//
|
||||
// pub fn foo() void {
|
||||
// ...
|
||||
// }
|
||||
//
|
||||
// Try to fix the program and run `ziglings` to see if it works!
|
||||
// Perhaps knowing this well help solve the errors we're getting
|
||||
// with this little program?
|
||||
//
|
||||
const std = @import("std");
|
||||
|
||||
|
|
Loading…
Reference in a new issue