Skip to content

Commit

Permalink
Revise annotations to not refer to subjects as it
Browse files Browse the repository at this point in the history
  • Loading branch information
dane committed Dec 5, 2024
1 parent bf43b7a commit d65bd3c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ fn main() {
// ANCHOR: here
fn calculate_length(s: &String) -> usize { // s is a reference to a String
s.len()
} // Here, s goes out of scope. But because it does not have ownership of what
// it refers to, it is not dropped.
} // Here, s goes out of scope. But because s does not have ownership of what
// it refers to, the value is not dropped.
// ANCHOR_END: here

0 comments on commit d65bd3c

Please sign in to comment.