error: expression must be mutable in assignment
I'm trying to create a fibonacci struct:
However it's failing with this error:
Any hints on what I need to do to be able to update the values in the struct? I thought
inout self
was enough5 Replies
Congrats @EddTests, you just advanced to level 2!
Hi @EddTests just need to add
inout
to say the struct is mutable while running that method:
So something like this? If so, I'm still seeing some errors:
Errors:
O
I'm running it like
Just need to pop it in a variable first:
Thanks Jack!