Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lifetime description in a function signature #4141

Closed

Conversation

netaneld122
Copy link

I think that what the author meant here is that the returned reference can't outlive lifetime 'a (i.e will live at most as long as lifetime 'a and not at least as long as lifetime 'a).

@chriskrycho
Copy link
Contributor

Thanks for the suggestion, but actually the text is correct—this is a common confusion, and one I had very early on as well. You may find my comment in an identical PR opened a while ago helpful!

@chriskrycho chriskrycho closed this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants