projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #7 from leesper/master
[rust-101.git]
/
workspace
/
src
/
part04.rs
diff --git
a/workspace/src/part04.rs
b/workspace/src/part04.rs
index 2a3a6488a7536e88c43395dfeb1a257224a83404..e0d522e00cb863d58d56168b33a132c74243b34a 100644
(file)
--- a/
workspace/src/part04.rs
+++ b/
workspace/src/part04.rs
@@
-44,7
+44,7
@@
fn shared_ref_demo() {
println!("The first element is: {}", *first);
}
println!("The first element is: {}", *first);
}
-// ##
Exclusiv
e, mutable references
+// ##
Uniqu
e, mutable references
fn vec_inc(v: &mut Vec<i32>) {
for e in v.iter_mut() {
fn vec_inc(v: &mut Vec<i32>) {
for e in v.iter_mut() {