remove exclamation mark from string-program

This commit is contained in:
2022-06-28 15:45:26 +01:00
parent da24cc1f50
commit 0facc24fa7
7 changed files with 40 additions and 2 deletions

View File

@ -1,5 +1,5 @@
fn main() {
let s = String::from("hello!");
let s = String::from("hello");
println!("{}", s);
println!("size of string on stack: {}", std::mem::size_of_val(&s));
}