Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -1,20 +1,9 @@
/*
* String concatenation in Rust.
* Copyright by Shlomi Fish, 2013.
* Released under the MIT/X11 License
* ( http://en.wikipedia.org/wiki/MIT_License ).
* */
// rust 0.8
// rust 0.13
fn main() {
let s = ~"hello";
println!("s={}", s + " world");
let s = "hello".to_string();
println!("{}", s);
let s1 = s + " world";
println!("s1={}", s1);
let mut mutable_s = ~"hello";
mutable_s.push_str(" world");
println!("mutable_s={}", mutable_s);
println!("{}", s1);
}