finished ch8.1

This commit is contained in:
2025-01-17 20:51:38 -07:00
parent 40a722d93d
commit 1624bbb975
6 changed files with 193 additions and 18 deletions

View File

@ -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