mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-10 04:39:18 +00:00
ex01
This commit is contained in:
parent
f2de12aa34
commit
168f225b01
@ -9,7 +9,6 @@
|
|||||||
// when you change one of the lines below! Try adding a `println!` line, or try changing
|
// 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!
|
// what it outputs in your terminal. Try removing a semicolon and see what happens!
|
||||||
|
|
||||||
// I AM NOT DONE
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello and");
|
println!("Hello and");
|
||||||
@ -33,5 +32,7 @@ fn main() {
|
|||||||
println!(
|
println!(
|
||||||
"If you want to use rust-analyzer, Rust's LSP implementation, make sure your editor is set"
|
"If you want to use rust-analyzer, Rust's LSP implementation, make sure your editor is set"
|
||||||
);
|
);
|
||||||
println!("up, and then run `rustlings lsp` before continuing.")
|
println!("up, and then run `rustlings lsp` before continuing.");
|
||||||
|
println!("");
|
||||||
|
println!("Hello, World!")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,8 +2,6 @@
|
|||||||
// Make the code print a greeting to the world.
|
// Make the code print a greeting to the world.
|
||||||
// Execute `rustlings hint intro2` or use the `hint` watch subcommand for a hint.
|
// Execute `rustlings hint intro2` or use the `hint` watch subcommand for a hint.
|
||||||
|
|
||||||
// I AM NOT DONE
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello {}!");
|
println!("Hello, {}!", "World");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user