From 02481656966b0a8dfc95cf3c22bcc049660ff7d4 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Sat, 26 Dec 2020 17:48:38 +0000 Subject: Move Rust exercises in a subdirectory --- rust/hello-world/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 rust/hello-world/src/lib.rs (limited to 'rust/hello-world/src') diff --git a/rust/hello-world/src/lib.rs b/rust/hello-world/src/lib.rs new file mode 100644 index 0000000..8f68273 --- /dev/null +++ b/rust/hello-world/src/lib.rs @@ -0,0 +1,5 @@ +// The &'static here means the return type has a static lifetime. +// This is a Rust feature that you don't need to worry about now. +pub fn hello() -> &'static str { + "Hello, World!" +} -- cgit v1.2.3