1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-11-27 22:38:18 +02:00

feat: improve watch execution mode

The `watch` command now requires user action to move to the next
exercise.

BREAKING CHANGE: this changes the behavior of `watch`.
This commit is contained in:
Roberto Vidal
2019-11-11 13:38:24 +01:00
parent a47a62172a
commit 2cdd61294f
60 changed files with 309 additions and 12 deletions

View File

@@ -1,6 +1,13 @@
// variables1.rs
// Make me compile! Scroll down for hints :)
// About this `I AM NOT DONE` thing:
// We sometimes encourage you to keep trying things on a given exercise,
// even after you already figured it out. If you got everything working and
// feel ready for the next exercise, you the `I AM NOT DONE` comment below.
// I AM NOT DONE
fn main() {
x = 5;
println!("x has the value {}", x);

View File

@@ -1,6 +1,8 @@
// variables2.rs
// Make me compile! Scroll down for hints :)
// I AM NOT DONE
fn main() {
let x;
if x == 10 {

View File

@@ -1,6 +1,8 @@
// variables3.rs
// Make me compile! Scroll down for hints :)
// I AM NOT DONE
fn main() {
let x = 3;
println!("Number {}", x);

View File

@@ -1,6 +1,8 @@
// variables4.rs
// Make me compile! Scroll down for hints :)
// I AM NOT DONE
fn main() {
let x: i32;
println!("Number {}", x);