Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Problem

// intro2.rs
// 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

fn main() {
    println!("Hello {}!");
}

Answer

// intro2.rs
// Make the code print a greeting to the world.
// Execute `rustlings hint intro2` or use the `hint` watch subcommand for a hint.

fn main() {
    println!("Hello {}!", "world");
}

Solution

rust에서 출력을 포멧하려면 {},를 사용한다.