ratfactor / ziglings

Learn the Zig programming language by fixing tiny broken programs.
MIT License
4.29k stars 485 forks source link

[Exercise 48] Can anyone explain what is happening here? #359

Closed terraquad closed 1 year ago

terraquad commented 1 year ago

I was just doing Ziglings and I got stuck at exercise 48 because the compiler doesn't give a clear error message. Screenshot 2023-09-08 102249 Please explain what went wrong. Thank you!

terraquad commented 1 year ago

I got it, I wrote elephantC.tail = &elephantA; in line 40. I removed it and now it works!