Jump to content

Rust (programming language): Difference between revisions

Line 54: Line 54:


# C++: const int &
# C++: const int &
fill_vec_borrow(&x)
example_borrow(&x)
# C++: int&
# C++: int&
fill_vec_mut_borrow(&mut y)
example_mut_borrow(&mut y)
</syntaxhighlight>
</syntaxhighlight>