Rust (programming language): Difference between revisions
Line 54: | Line 54: | ||
# C++: const int & | # C++: const int & | ||
example_borrow(&x) | |||
# C++: int& | # C++: int& | ||
example_mut_borrow(&mut y) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 54: | Line 54: | ||
# C++: const int & | # C++: const int & | ||
example_borrow(&x) | |||
# C++: int& | # C++: int& | ||
example_mut_borrow(&mut y) | |||
</syntaxhighlight> | </syntaxhighlight> | ||