Heap bits
This commit is contained in:
parent
eace2dafe4
commit
5a74a5dc01
@ -1,9 +1,6 @@
|
||||
fn main() {
|
||||
{
|
||||
let mut s = String::from("hello");
|
||||
let s1 = String::from("hello");
|
||||
let s2 = s1.clone();
|
||||
|
||||
s.push_str(", world!");
|
||||
|
||||
println!("{}", s);
|
||||
}
|
||||
println!("s1 = {}, s2 = {}", s1, s2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user