Просмотр исходного кода

Merge pull request #68 from Palm404/main

feat: Add more comparison operator coverage in 009_if.zig
Dave Gauer 4 лет назад
Родитель
Сommit
008ad0d26b
3 измененных файлов с 4 добавлено и 3 удалено
  1. 1 0
      exercises/009_if.zig
  2. 2 2
      exercises/015_for.zig
  3. 1 1
      exercises/018_functions.zig

+ 1 - 0
exercises/009_if.zig

@@ -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

+ 2 - 2
exercises/015_for.zig

@@ -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 - 1
exercises/018_functions.zig

@@ -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 {