Files
book/nostarch/chapter15-code-updates.md
T

11 lines
526 B
Markdown

Please replace the "if... else if... else if" block highlighted on page 326 with this code, indented the same way as the old code was:
```
if percentage_of_max >= 1.0 {
self.messenger.send("Error: You are over your quota!");
} else if percentage_of_max >= 0.9 {
self.messenger.send("Urgent warning: You've used up over 90% of your quota!");
} else if percentage_of_max >= 0.75 {
self.messenger.send("Warning: You've used up over 75% of your quota!");
}
```