From a111eed5758547ec685d911da3cabda23a82a27d Mon Sep 17 00:00:00 2001 From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Fri, 24 May 2024 20:14:02 +0200 Subject: [PATCH] Re-add necessary references section in 06/06 --- book/src/06_ticket_management/06_lifetimes.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/book/src/06_ticket_management/06_lifetimes.md b/book/src/06_ticket_management/06_lifetimes.md index f3469e4..2c5a72b 100644 --- a/book/src/06_ticket_management/06_lifetimes.md +++ b/book/src/06_ticket_management/06_lifetimes.md @@ -77,5 +77,8 @@ You can think of `'_` as a **placeholder** for the lifetime of the `&self` refer See the [References](#references) section for a link to the official documentation on lifetime elision.\ In most cases, you can rely on the compiler telling you when you need to add explicit lifetime annotations. +## References + +- [std::vec::Vec::iter](https://doc.rust-lang.org/std/vec/struct.Vec.html#method.iter) - [std::slice::Iter](https://doc.rust-lang.org/std/slice/struct.Iter.html) - [Lifetime elision rules](https://doc.rust-lang.org/reference/lifetime-elision.html) -- 2.45.2