Browse Source

Merge pull request #27 from vishalsodani/main

Fixed some typos
Dave Gauer 4 years ago
parent
commit
d2b4e7a87b
2 changed files with 3 additions and 3 deletions
  1. 1 1
      exercises/36_enums2.zig
  2. 2 2
      exercises/37_structs.zig

+ 1 - 1
exercises/36_enums2.zig

@@ -33,7 +33,7 @@ const Color = enum(u32) {
 };
 };
 
 
 pub fn main() void {
 pub fn main() void {
-    // Remeber Zig's multi-line strings? Here they are again.
+    // Remember Zig's multi-line strings? Here they are again.
     // Also, check out this cool format string:
     // Also, check out this cool format string:
     //
     //
     //     {x:0>6}
     //     {x:0>6}

+ 2 - 2
exercises/37_structs.zig

@@ -10,8 +10,8 @@
 //
 //
 // into this:
 // into this:
 //
 //
-//     point1 = Point{ .x=3, .y=16, .y=27 };
-//     point2 = Point{ .x=7, .y=13, .y=34 };
+//     point1 = Point{ .x=3, .y=16, .z=27 };
+//     point2 = Point{ .x=7, .y=13, .z=34 };
 //
 //
 // The Point above is an example of a "struct" (short for "structure").
 // The Point above is an example of a "struct" (short for "structure").
 // Here's how it could have been defined:
 // Here's how it could have been defined: