Improve grammar in Variance section

This makes it clear that it's not the function being called that's expecting, but its caller.
pull/515/head
Emmanuel Amoah 3 weeks ago committed by GitHub
parent 5b3a9d084c
commit 85a0843bf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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:

Loading…
Cancel
Save