Skip to content

Commit d052363

Browse files
committed
fix typo in Lifetimes mutable reference aliasing section
1 parent bfe1ab9 commit d052363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lifetimes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ understand `Vec` at all. What it *does* see is that `x` has to live for `'b` to
213213
be printed. The signature of `Index::index` subsequently demands that the
214214
reference we take to `data` has to survive for `'b`. When we try to call `push`,
215215
it then sees us try to make an `&'c mut data`. Rust knows that `'c` is contained
216-
within `'b`, and rejects our program because the `&'b data` must still be live!
216+
within `'b`, and rejects our program because the `&'b data` must still be alive!
217217

218218
Here we see that the lifetime system is much more coarse than the reference
219219
semantics we're actually interested in preserving. For the most part, *that's

0 commit comments

Comments
 (0)