This commit is contained in:
2023-06-01 16:10:02 +02:00
parent cc25a4f8fd
commit daa542bbe3
2 changed files with 18 additions and 0 deletions

8
println/Cargo.toml Normal file
View File

@@ -0,0 +1,8 @@
[package]
name = "println"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

10
println/src/main.rs Normal file
View File

@@ -0,0 +1,10 @@
fn main() {
println!("Hello, world!");
let v1 = " es el ";
let v2 = "lugar para ";
println!("tinchicus.com{}{}aprender", v1, v2);
println!("tinchicus.com{1}{0}aprender {0}", v1, v2);
}