summary refs log tree commit diff stats
path: root/rust/hello-world/src
diff options
context:
space:
mode:
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!"
+}