You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/book/lifetimes.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ To fix this, we have to make sure that step four never happens after step
56
56
three. The ownership system in Rust does this through a concept called
57
57
lifetimes, which describe the scope that a reference is valid for.
58
58
59
-
**Note** It's important to understand that lifetime annotations are _descriptive_ not _prescriptive_. This means that who long a reference is valid is determined by the code, not by the annotations. The annotations, however, point out this fact to the compiler in case it can't figure it out by itself.
59
+
**Note** It's important to understand that lifetime annotations are _descriptive_, not _prescriptive_. This means that how long a reference is valid is determined by the code, not by the annotations. The annotations, however, point out this fact to the compiler in case it can't figure it out by itself.
60
60
61
61
When we have a function that takes an argument by reference, we can be
62
62
implicit or explicit about the lifetime of the reference:
0 commit comments