1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-11-08 05:48:11 -05:00

Merge branch 'master' into refactor-hints

This commit is contained in:
marisa 2019-11-11 17:21:06 +01:00 committed by GitHub
commit ec2d4bd3ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
61 changed files with 315 additions and 12 deletions

View file

@ -1,6 +1,13 @@
// variables1.rs
// Make me compile! Execute the command `rustlings hint variables1` if you want a hint :)
// 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! Execute the command `rustlings hint variables2` if you want a hint :)
// I AM NOT DONE
fn main() {
let x;
if x == 10 {

View file

@ -1,6 +1,8 @@
// variables3.rs
// Make me compile! Execute the command `rustlings hint variables3` if you want a hint :)
// I AM NOT DONE
fn main() {
let x = 3;
println!("Number {}", x);

View file

@ -1,6 +1,8 @@
// variables4.rs
// Make me compile! Execute the command `rustlings hint variables4` if you want a hint :)
// I AM NOT DONE
fn main() {
let x: i32;
println!("Number {}", x);