diff options
author | Kara Kincaid <kara_kincaid@epam.com> | 2015-10-13 10:06:11 -0400 |
---|---|---|
committer | Kara Kincaid <kara_kincaid@epam.com> | 2015-10-13 10:06:11 -0400 |
commit | 45a5a9ed5b45f483a04c3b985be74cbcd38179fe (patch) | |
tree | 9d7599079877adda1b28cac75b8bc8f8bf057091 /rust.html.markdown | |
parent | 622d4485ab9efd265be83d16abbe8cb12da7934c (diff) | |
parent | 59a07411effbd0ed6289e062621deb29fe8641a8 (diff) |
fix merge conflict in css.html.markdown
Diffstat (limited to 'rust.html.markdown')
-rw-r--r-- | rust.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust.html.markdown b/rust.html.markdown index b2854b0c..d0c56b4a 100644 --- a/rust.html.markdown +++ b/rust.html.markdown @@ -287,9 +287,9 @@ fn main() { // While a value is mutably borrowed, it cannot be accessed at all. let mut var2 = 4; let ref_var2: &mut i32 = &mut var2; - *ref_var2 += 2; + *ref_var2 += 2; // '*' is used to point to the mutably borrowed var2 - println!("{}", *ref_var2); // 6 + println!("{}", *ref_var2); // 6 , //var2 would not compile. //ref_var2 is of type &mut i32, so //stores a reference to an i32 not the value. // var2 = 2; // this would not compile because `var2` is borrowed } ``` |