diff options
Diffstat (limited to '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!"); +} + |