You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks to @unional for pointing out that the comment and code on Ex 047 do not match, which is super unfortunate. The comment shows an instance where we don't need a mutable reference. The code uses a self: *foo reference since it does need to be mutable.
There may be other instances where this has happened. Probably better check every instance of self in the Ziglings exercises to make sure this is being used consistently.
I know I was confused by the selfs in the exercises and was never sure whether I should've been using * or not. Maybe that was the result of it being inconsistent?
Thanks to @unional for pointing out that the comment and code on Ex 047 do not match, which is super unfortunate. The comment shows an instance where we don't need a mutable reference. The code uses a
self: *foo
reference since it does need to be mutable.There may be other instances where this has happened. Probably better check every instance of
self
in the Ziglings exercises to make sure this is being used consistently.Re: #123
The text was updated successfully, but these errors were encountered: