mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-27 01:46:29 +00:00
Correct comment to match code in 076_sentinels
This commit is contained in:
parent
e7c106ba3a
commit
1a001b9eb7
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ pub fn main() void {
|
||||||
fn printSequence(my_seq: anytype) void {
|
fn printSequence(my_seq: anytype) void {
|
||||||
const my_typeinfo = @typeInfo(@TypeOf(my_seq));
|
const my_typeinfo = @typeInfo(@TypeOf(my_seq));
|
||||||
|
|
||||||
// The TypeInfo contained in my_type is a union. We use a
|
// The TypeInfo contained in my_typeinfo is a union. We use
|
||||||
// switch to handle printing the Array or Pointer fields,
|
// a switch to handle printing the Array or Pointer fields,
|
||||||
// depending on which type of my_seq was passed in:
|
// depending on which type of my_seq was passed in:
|
||||||
switch (my_typeinfo) {
|
switch (my_typeinfo) {
|
||||||
.Array => {
|
.Array => {
|
||||||
|
|
Loading…
Reference in a new issue