summaryrefslogtreecommitdiff
path: root/exercises/13_error_handling/errors2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/13_error_handling/errors2.rs')
-rw-r--r--exercises/13_error_handling/errors2.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/exercises/13_error_handling/errors2.rs b/exercises/13_error_handling/errors2.rs
index 88d1bf4..051516b 100644
--- a/exercises/13_error_handling/errors2.rs
+++ b/exercises/13_error_handling/errors2.rs
@@ -29,6 +29,10 @@ pub fn total_cost(item_quantity: &str) -> Result<i32, ParseIntError> {
Ok(qty * cost_per_item + processing_fee)
}
+fn main() {
+ // You can optionally experiment here.
+}
+
#[cfg(test)]
mod tests {
use super::*;