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

Merge pull request 'Correct comment to match code in 076_sentinels' (#33) from mttrb/ziglings:076-comment into main

Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/33
Chris Boesch 1 год назад
Родитель
Сommit
b7dfa4cd1d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      exercises/076_sentinels.zig

+ 2 - 2
exercises/076_sentinels.zig

@@ -74,8 +74,8 @@ pub fn main() void {
 fn printSequence(my_seq: anytype) void {
     const my_typeinfo = @typeInfo(@TypeOf(my_seq));
 
-    // The TypeInfo contained in my_type is a union. We use a
-    // switch to handle printing the Array or Pointer fields,
+    // The TypeInfo contained in my_typeinfo is a union. We use
+    // a switch to handle printing the Array or Pointer fields,
     // depending on which type of my_seq was passed in:
     switch (my_typeinfo) {
         .Array => {