complete version

This commit is contained in:
2022-06-17 13:42:33 +01:00
parent 7e9e16690e
commit 3d2a9c67e7
17 changed files with 205 additions and 44 deletions

7
string-program/Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "string-program"
version = "0.1.0"

View File

@ -0,0 +1,4 @@
[package]
name = "string-program"
version = "0.1.0"
edition = "2021"

View File

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