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); -}