summaryrefslogtreecommitdiff
path: root/exercises/13_error_handling/errors3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/13_error_handling/errors3.rs')
-rw-r--r--exercises/13_error_handling/errors3.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/13_error_handling/errors3.rs b/exercises/13_error_handling/errors3.rs
index 5661f17..2ef84f9 100644
--- a/exercises/13_error_handling/errors3.rs
+++ b/exercises/13_error_handling/errors3.rs
@@ -18,7 +18,7 @@ fn main() {
}
}
-pub fn total_cost(item_quantity: &str) -> Result<i32, ParseIntError> {
+fn total_cost(item_quantity: &str) -> Result<i32, ParseIntError> {
let processing_fee = 1;
let cost_per_item = 5;
let qty = item_quantity.parse::<i32>()?;