Skip to content

Commit 9c912bf

Browse files
authored
Merge pull request #225 from mxxo/typo
fix typo in Lifetimes mutable reference aliasing section
2 parents 6e57e64 + d052363 commit 9c912bf

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)