Skip to content

Commit

Permalink
Correct comment to match code in 076_sentinels
Browse files Browse the repository at this point in the history
  • Loading branch information
mttrb committed Dec 31, 2023
1 parent e7c106b commit 1a001b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/076_sentinels.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 1a001b9

Please sign in to comment.