mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
Merge pull request #68 from Palm404/main
feat: Add more comparison operator coverage in 009_if.zig
This commit is contained in:
commit
008ad0d26b
3 changed files with 4 additions and 3 deletions
|
@ -11,6 +11,7 @@
|
|||
//
|
||||
// a == b means "a equals b"
|
||||
// a < b means "a is less than b"
|
||||
// a > b means "a is greater than b"
|
||||
// a != b means "a does not equal b"
|
||||
//
|
||||
// The important thing about Zig's "if" is that it *only* accepts
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// Behold the 'for' loop! It lets you execute code for each
|
||||
// member of an array:
|
||||
// Behold the 'for' loop! For loops let you execute code for each
|
||||
// element of an array:
|
||||
//
|
||||
// for (items) |item| {
|
||||
//
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// Functions! We've already seen a lot of one called "main()". Now let's try
|
||||
// Functions! We've already seen lots of ones called "main()". Now let's try
|
||||
// writing one of our own:
|
||||
//
|
||||
// fn foo(n: u8) u8 {
|
||||
|
|
Loading…
Reference in a new issue