diff options
| author | mo8it <mo8it@proton.me> | 2024-04-17 22:46:21 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-17 22:46:21 +0200 |
| commit | cb9f1ac9ce3c834b0cca964b6809b74508f80b54 (patch) | |
| tree | f168d86b6035d7d9e357ac53cd36c2b8928f399b /exercises/13_error_handling/errors2.rs | |
| parent | d83cc69afecf59fba184755591d73c7208988574 (diff) | |
Require a main function in all exercises
Diffstat (limited to 'exercises/13_error_handling/errors2.rs')
| -rw-r--r-- | exercises/13_error_handling/errors2.rs | 4 |
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::*; |
