We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Chapter 16, the Modifiers section, you have the following code:
function increment!(time, seconds) time.second += seconds if time.second >= 60 time.second -= 60 time.minute += 1 end if time.minute >= 60 time.minute -= 60 time.hour += 1 end end
This won't work because MyTime is previously defined as an immutable struct.
MyTime
The text was updated successfully, but these errors were encountered:
Good remark! I have to introduce a mutable MyTime type;)
Sorry, something went wrong.
No branches or pull requests
In Chapter 16, the Modifiers section, you have the following code:
This won't work because
MyTime
is previously defined as an immutable struct.The text was updated successfully, but these errors were encountered: