diff options
author | Patrick Simianer <p@simianer.de> | 2017-04-02 22:51:23 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2017-04-02 22:51:23 +0200 |
commit | 2934a9a9119b00f50b9c88b80d2fbc35975fde97 (patch) | |
tree | b574aa49aab3715a2a9fe7f64944d06deb6f38dd | |
parent | a46c4c54c21eea1c5545a250399385f163ae735f (diff) |
rust
-rw-r--r-- | rust/format.rs | 6 | ||||
-rw-r--r-- | rust/hello.rs | 4 |
2 files changed, 10 insertions, 0 deletions
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!"); +} + |