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