summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
Diffstat (limited to 'rust')
-rw-r--r--rust/hello.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/hello.rs b/rust/hello.rs
new file mode 100644
index 0000000..851beed
--- /dev/null
+++ b/rust/hello.rs
@@ -0,0 +1,6 @@
+use std::io;
+fn main() {
+ let mut name = String::from("World");
+ io::stdin().read_line(&mut name).ok();
+ println!("Hello, {}", name);
+}