From 2934a9a9119b00f50b9c88b80d2fbc35975fde97 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Sun, 2 Apr 2017 22:51:23 +0200 Subject: rust --- rust/format.rs | 6 ++++++ rust/hello.rs | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 rust/format.rs create mode 100644 rust/hello.rs diff --git a/rust/format.rs b/rust/format.rs new file mode 100644 index 0000000..f258fc4 --- /dev/null +++ b/rust/format.rs @@ -0,0 +1,6 @@ +fn main() +{ + println!("{} days", 31); + println!("{0}, {1},{0}{0} days", 31, "xx"); +} + diff --git a/rust/hello.rs b/rust/hello.rs new file mode 100644 index 0000000..cf40825 --- /dev/null +++ b/rust/hello.rs @@ -0,0 +1,4 @@ +fn main() { + println!("Hello World!"); +} + -- cgit v1.2.3