From 85a0843bf98218b83458e7c82ace7c3776fe0125 Mon Sep 17 00:00:00 2001 From: Emmanuel Amoah <42612171+emamoah@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:33:47 +0000 Subject: [PATCH] Improve grammar in Variance section This makes it clear that it's not the function being called that's expecting, but its caller. --- src/subtyping.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subtyping.md b/src/subtyping.md index cdb8c517..6e3ef375 100644 --- a/src/subtyping.md +++ b/src/subtyping.md @@ -276,7 +276,7 @@ provide a function with the following signature instead: fn get_static() -> &'static str; ``` -So when the function is called, all it's expecting is a `&str` which lives at least the lifetime of `'a`, +So when the function is called, all its caller is expecting is a `&str` which lives at least the lifetime of `'a`, it doesn't matter if the value actually lives longer. However, the same logic does not apply to *arguments*. Consider trying to satisfy: