From 9c2b4da36e944111db9f2deb00ed3404f0c56443 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 22 Feb 2019 11:41:57 -0500 Subject: [PATCH] Add a factorial example, checking for integer overflow --- .idea/misc.xml | 1 + .idea/rust.iml | 5 ++ .idea/workspace.xml | 166 ++++++++++++++++++++---------------------- factorial/Cargo.toml | 8 ++ factorial/src/main.rs | 73 +++++++++++++++++++ 5 files changed, 167 insertions(+), 86 deletions(-) create mode 100644 factorial/Cargo.toml create mode 100644 factorial/src/main.rs diff --git a/.idea/misc.xml b/.idea/misc.xml index c8116fe..fc4f7d3 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -46,6 +46,7 @@ + diff --git a/.idea/rust.iml b/.idea/rust.iml index e6bb3c9..42a672f 100644 --- a/.idea/rust.iml +++ b/.idea/rust.iml @@ -185,6 +185,10 @@ + + + + @@ -198,6 +202,7 @@ + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 64ff647..a07822a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,9 @@ - + + +