r/learnrust • u/md_Fahad25624 • 5d ago
New to programming, learning to code on my phone with Termux
I'm a beginner, learning coding newly, my first serious language is Rust. This is my GitHub link, there are some small projects here, I'll be glad to accept reviews.
0
Upvotes
1
u/Discordbothost 4d ago
I opened your tic-tac-toe main.rs. When stdin closes, read_line returns Ok(0), so read_number keeps asking for a number forever. Treat Ok(0) like q and return None. I'd give read_size the same exit path so it works at the first prompt too.
-4
u/OkBug7820 4d ago
your projects are screaming intermediate rather than beginner