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:
parent
cb9f1ac9ce
commit
2f810a4da6
96 changed files with 267 additions and 635 deletions
exercises/01_variables
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue