summary refs log tree commit diff stats
path: root/rust/hello-world/src
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-09-07 21:16:54 +0530
committerAndinus <andinus@nand.sh>2021-09-07 21:16:54 +0530
commita6a08927f762a0d30c8e199cd2c1386ee2e08d0e (patch)
tree64f405935b716e61e7c9ecb7cc20fdf24f0b2311 /rust/hello-world/src
parent5622b92d80a80faabc1bcf35c94a35a28ff63e05 (diff)
downloadexercism-a6a08927f762a0d30c8e199cd2c1386ee2e08d0e.tar.gz
Rust: Add Hello World & Lucian's Luscious Lasagna
Diffstat (limited to 'rust/hello-world/src')
-rw-r--r--rust/hello-world/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/hello-world/src/lib.rs b/rust/hello-world/src/lib.rs
new file mode 100644
index 0000000..5c2db6d
--- /dev/null
+++ b/rust/hello-world/src/lib.rs
@@ -0,0 +1,4 @@
+// &'static is a "lifetime specifier", something you'll learn more about later
+pub fn hello() -> &'static str {
+    "Hello, World!"
+}