mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-10 12:49:18 +00:00
solved intro rustlings exercises
This commit is contained in:
parent
6d4a980b04
commit
85a3199159
@ -9,7 +9,7 @@
|
||||
// when you change one of the lines below! Try adding a `println!` line, or try changing
|
||||
// what it outputs in your terminal. Try removing a semicolon and see what happens!
|
||||
|
||||
// I AM NOT DONE
|
||||
// I AM DONE
|
||||
|
||||
fn main() {
|
||||
println!("Hello and");
|
||||
|
||||
@ -2,8 +2,9 @@
|
||||
// Make the code print a greeting to the world.
|
||||
// Execute `rustlings hint intro2` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
// I AM DONE
|
||||
|
||||
fn main() {
|
||||
println!("Hello {}!");
|
||||
let hello_world:String= "World".to_string();
|
||||
println!("Hello {}!",hello_world);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user