4 ms·
let s1 ="hello world"; let s2 = s1; // copied – x1 is still valid let x1 = 2; let x2 = x1; // copied – x1 is still valid println!("{} for the {}nd time
by savolai 7y ago
let s1 ="hello world";
let s2 = s1; // copied – x1 is still valid
let x1 = 2;
let x2 = x1; // copied – x1 is still valid
println!("{} for the {}nd time!", s1, x1);
Typo in first comment? s1 vs x1?
- msrokk 7y agofixed, thank you