mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 05:09:19 +00:00
Completed the intro
This commit is contained in:
parent
cd2b5e8e3b
commit
d6fbbecaa5
@ -5,7 +5,6 @@
|
||||
// ready for the next exercise, remove the `I AM NOT DONE` comment below.
|
||||
// Execute the command `rustlings hint intro1` for a hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
fn main() {
|
||||
println!("Hello and");
|
||||
|
||||
@ -2,8 +2,9 @@
|
||||
// Make the code print a greeting to the world.
|
||||
// Execute `rustlings hint intro2` for a hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
fn main() {
|
||||
println!("Hello {}!");
|
||||
println!("Hello {}!","world");
|
||||
// you need to put in a string with double quotes. Not sure what about 'world' makes it break yet.
|
||||
// It seems that a string literal needs double quotes.
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user