summaryrefslogtreecommitdiff
path: root/solutions/02_functions/functions1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'solutions/02_functions/functions1.rs')
-rw-r--r--solutions/02_functions/functions1.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/solutions/02_functions/functions1.rs b/solutions/02_functions/functions1.rs
new file mode 100644
index 0000000..dc52744
--- /dev/null
+++ b/solutions/02_functions/functions1.rs
@@ -0,0 +1,8 @@
+// Some function with the name `call_me` without arguments or a return value.
+fn call_me() {
+ println!("Hello world!");
+}
+
+fn main() {
+ call_me();
+}