From f827c614736245c642faacba6edde37164c17f2a Mon Sep 17 00:00:00 2001 From: Flurin Egger Date: Thu, 17 Nov 2016 17:08:14 +0100 Subject: [PATCH] Add Rust Hello World --- hello.rs | 6 ++++++ readme.md | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 hello.rs diff --git a/hello.rs b/hello.rs new file mode 100644 index 0000000..cafafa8 --- /dev/null +++ b/hello.rs @@ -0,0 +1,6 @@ +// Compile with 'rustc hello.rs' and run './hello' + +// This is the main function +fn main() { + println!("Hello Worrrrrrld!"); +} \ No newline at end of file diff --git a/readme.md b/readme.md index 84bdaa9..3cfd81d 100644 --- a/readme.md +++ b/readme.md @@ -6,4 +6,5 @@ This is a collection of Hello World programs - Ruby (hello.rb) - CSS (hello-css.html) -- Haskell (hello.hs) \ No newline at end of file +- Haskell (hello.hs) +- Rust (hello.rs) \ No newline at end of file