aboutsummaryrefslogtreecommitdiff
path: root/hello-world/src
diff options
context:
space:
mode:
authorFederico I <git@federicoigne.com>2020-03-14 19:21:02 +0000
committerFederico Igne <git@federicoigne.com>2021-11-03 18:49:20 +0000
commitda0fec405edd592d9ae7c658cb80fdc652671c37 (patch)
tree00ce4204858d34f932e0cd81bebb33e4fbd421ee /hello-world/src
parent629472a32c01f3972981f913b3585abcf8c4eb63 (diff)
downloadexercism-da0fec405edd592d9ae7c658cb80fdc652671c37.tar.gz
exercism-da0fec405edd592d9ae7c658cb80fdc652671c37.zip
[rust] Hello World
Diffstat (limited to 'hello-world/src')
-rw-r--r--hello-world/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/hello-world/src/lib.rs b/hello-world/src/lib.rs
new file mode 100644
index 0000000..8f68273
--- /dev/null
+++ b/hello-world/src/lib.rs
@@ -0,0 +1,5 @@
1// The &'static here means the return type has a static lifetime.
2// This is a Rust feature that you don't need to worry about now.
3pub fn hello() -> &'static str {
4 "Hello, World!"
5}