@ -523,15 +523,16 @@ const ZiglingStep = struct {
const path = self . exercise . main_file ;
const path = self . exercise . main_file ;
const key = self . exercise . key ( ) ;
const key = self . exercise . key ( ) ;
print ( " \n {s}Edit exercises/{s} and run this again.{s} " , . {
print ( " \n {s}Edit exercises/{s} and run 'zig build' again.{s}\n " , . {
red_text , path , reset_text ,
red_text , path , reset_text ,
} ) ;
} ) ;
const format =
const format =
\\
\\
\\{s}To co ntinue from this zigling, use this command:{s}
\\{s}To co mpile only this exercise, you can also use this command:{s}
\\{s}zig build -Dn={s}{s}
\\{s}zig build -Dn={s}{s}
\\
\\
\\
;
;
print ( format , . { red_text , reset_text , bold_text , key , reset_text } ) ;
print ( format , . { red_text , reset_text , bold_text , key , reset_text } ) ;
}
}
@ -665,7 +666,7 @@ const exercises = [_]Exercise{
. {
. {
. main_file = " 001_hello.zig " ,
. main_file = " 001_hello.zig " ,
. output = " Hello world! " ,
. output = " Hello world! " ,
. hint = " DON'T PANIC! \n Read the error above. \n See how it has something to do with 'main'? \n Open up the source file as noted and read the comments. \n You can do this! " ,
. hint = " DON'T PANIC! \n Read the error above. \n See how it has something to do with 'main'? \n Open up the source file as noted and read the comments. \n You can do this! \n " ,
} ,
} ,
. {
. {
. main_file = " 002_std.zig " ,
. main_file = " 002_std.zig " ,