Using the .append() method on structs
I have the following code:
However, line 12 gives an error even though I think it should be valid. What is the proper syntax in this case?
5 Replies
You may need to change the method signature to use to
inout self
Since you're modifying a field on selfSame error sadly
What error does it give?

Actually i might have fixed it
yeah idk i think the vsc was just acting up
actually no i spelt
inout
wrong earlier but i've fixed it now