summaryrefslogtreecommitdiff
path: root/solutions/quizzes/quiz1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'solutions/quizzes/quiz1.rs')
-rw-r--r--solutions/quizzes/quiz1.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/solutions/quizzes/quiz1.rs b/solutions/quizzes/quiz1.rs
index bc76166..5503c8c 100644
--- a/solutions/quizzes/quiz1.rs
+++ b/solutions/quizzes/quiz1.rs
@@ -1,8 +1,7 @@
// Mary is buying apples. The price of an apple is calculated as follows:
// - An apple costs 2 rustbucks.
-// - If Mary buys more than 40 apples, each apple only costs 1 rustbuck!
-// Write a function that calculates the price of an order of apples given the
-// quantity bought.
+// - However, if Mary buys more than 40 apples, the price of each apple in the
+// entire order is reduced to only 1 rustbuck!
fn calculate_price_of_apples(n_apples: u64) -> u64 {
if n_apples > 40 {