mirror of
https://github.com/darkicewolf50/RustBrock.git
synced 2025-07-07 03:27:13 -06:00
finished ch8.1
This commit is contained in:
@ -106,8 +106,7 @@ fn calculate_length(s: String) -> (String, usize) {
|
||||
# References
|
||||
|
||||
## Rules
|
||||
1. At any given time, you can have either one mutable reference or any number of
|
||||
immutable references.
|
||||
1. At any given time, you can have either one mutable reference or any number of immutable references.
|
||||
1. References must always be valid
|
||||
|
||||
Giving access to a variable without transfering ownership/moving it
|
||||
|
Reference in New Issue
Block a user