When you want to change a property inside a method, you need to mark it using the mutating keyword, like this: struct Person { var name: String mutating ...
確定! 回上一頁