summaryrefslogtreecommitdiff
path: root/add/adder/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'add/adder/src/main.rs')
-rw-r--r--add/adder/src/main.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/add/adder/src/main.rs b/add/adder/src/main.rs
new file mode 100644
index 0000000..7deb796
--- /dev/null
+++ b/add/adder/src/main.rs
@@ -0,0 +1,10 @@
+use add_one;
+
+fn main() {
+ let num = 10;
+ println!(
+ "Hello, world! {} plus one is {}!",
+ num,
+ add_one::add_one(num)
+ );
+}