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 AsRefStr docs to specify lifetime constraints #330

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

DTrippe
Copy link
Contributor

@DTrippe DTrippe commented Feb 4, 2024

Fix for the AsRefStr docs to clarify that the lifetime bound on the returned str reference is the same as the originating enum reference.

As well, added a reference to IntoStaticStr, to direct users who explicitly be looking for that.

Fixed the AsRefStr docs to clarify that the lifetime bound on the
returned str reference is the same as the originating enum reference. As
well, directed users to IntoStaticStr, which supports returning str
references with a longer-lived lifetime.
@Peternator7 Peternator7 merged commit 2056939 into Peternator7:master Feb 4, 2024
1 check passed
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