Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Copy-a-string/Rust/copy-a-string-1.rust
Normal file
8
Task/Copy-a-string/Rust/copy-a-string-1.rust
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fn main() {
|
||||
let s1 = "A String";
|
||||
let mut s2 = s1;
|
||||
|
||||
s2 = "Another String";
|
||||
|
||||
println!("s1 = {}, s2 = {}", s1, s2);
|
||||
}
|
||||
1
Task/Copy-a-string/Rust/copy-a-string-2.rust
Normal file
1
Task/Copy-a-string/Rust/copy-a-string-2.rust
Normal file
|
|
@ -0,0 +1 @@
|
|||
s1 = A String, s2 = Another String
|
||||
Loading…
Add table
Add a link
Reference in a new issue