From 7fb534c57aac01032335c4e0d5c392098b0a6c14 Mon Sep 17 00:00:00 2001 From: Bit Borealis Date: Fri, 6 May 2022 20:15:52 +0000 Subject: [PATCH] Guess is shit --- {guess => collatz}/Cargo.toml | 2 +- collatz/src/main.rs | 3 +++ guess/src/main.rs | 19 ------------------- 3 files changed, 4 insertions(+), 20 deletions(-) rename {guess => collatz}/Cargo.toml (90%) mode change 100755 => 100644 create mode 100644 collatz/src/main.rs delete mode 100755 guess/src/main.rs diff --git a/guess/Cargo.toml b/collatz/Cargo.toml old mode 100755 new mode 100644 similarity index 90% rename from guess/Cargo.toml rename to collatz/Cargo.toml index fb1ec2c..88598e0 --- a/guess/Cargo.toml +++ b/collatz/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "hello" +name = "collatz" version = "0.1.0" edition = "2021" diff --git a/collatz/src/main.rs b/collatz/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/collatz/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/guess/src/main.rs b/guess/src/main.rs deleted file mode 100755 index 48c93b1..0000000 --- a/guess/src/main.rs +++ /dev/null @@ -1,19 +0,0 @@ -use std::io; -use std::io::Write; - -fn main() { - let mut theguess_tm = String::new(); - - println!("Hello noob"); - print!("Guess a number or something lol: "); - - io::stdout() - .flush() - .expect("couldn't flush ?"); - - io::stdin() - .read_line(&mut theguess_tm) - .expect("Stinky computer lol ur mom"); - - println!("ur guess was: {}", theguess_tm); -}