mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 18:14:33 -06:00
526 B
526 B
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!");
}