1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-07-24 14:30:06 -04:00

Clean up and unify exercises

This commit is contained in:
mo8it 2024-04-17 23:34:27 +02:00
commit 2f810a4da6
96 changed files with 267 additions and 635 deletions

View file

@ -1,9 +1,4 @@
// variables1.rs
//
// Make me compile!
//
// Execute `rustlings hint variables1` or use the `hint` watch subcommand for a
// hint.
fn main() {
x = 5;

View file

@ -1,8 +1,3 @@
// variables2.rs
//
// Execute `rustlings hint variables2` or use the `hint` watch subcommand for a
// hint.
fn main() {
let x;
if x == 10 {

View file

@ -1,8 +1,3 @@
// variables3.rs
//
// Execute `rustlings hint variables3` or use the `hint` watch subcommand for a
// hint.
fn main() {
let x: i32;
println!("Number {}", x);

View file

@ -1,8 +1,3 @@
// variables4.rs
//
// Execute `rustlings hint variables4` or use the `hint` watch subcommand for a
// hint.
fn main() {
let x = 3;
println!("Number {}", x);

View file

@ -1,8 +1,3 @@
// variables5.rs
//
// Execute `rustlings hint variables5` or use the `hint` watch subcommand for a
// hint.
fn main() {
let number = "T-H-R-E-E"; // don't change this line
println!("Spell a Number : {}", number);

View file

@ -1,8 +1,3 @@
// variables6.rs
//
// Execute `rustlings hint variables6` or use the `hint` watch subcommand for a
// hint.
const NUMBER = 3;
fn main() {
println!("Number {}", NUMBER);