From 9003ef672adafce1e87b4ba019e8abd84720cd95 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Mon, 21 Nov 2022 20:28:38 +0100 Subject: [PATCH] Update src/vec/vec-layout.md Co-authored-by: Daniel Henry-Mantilla --- src/vec/vec-layout.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vec/vec-layout.md b/src/vec/vec-layout.md index 8b570b1..9129952 100644 --- a/src/vec/vec-layout.md +++ b/src/vec/vec-layout.md @@ -17,7 +17,7 @@ pub struct Vec { And indeed this would compile. Unfortunately, it would be too strict. The compiler will give us too strict variance. So a `&Vec<&'static str>` -couldn't be used where an `&Vec<&'a str>` was expected. See [the chapter +couldn't be used where a `&Vec<&'a str>` was expected. See [the chapter on ownership and lifetimes][ownership] for all the details on variance. As we saw in the ownership chapter, the standard library uses `Unique` in place of