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

Update Optional.cs #257

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Update Optional.cs #257

merged 1 commit into from
Feb 12, 2025

Conversation

jjjmuniz
Copy link

This pull request fixes an incorrect comment on the ToOptional method. The comment stated "Constructs optional value from nullable reference type", however the method is constrained with where T : struct, meaning it is explicitly designed to work with nullable value types (T?) and cannot handle nullable reference types.

@sakno sakno changed the base branch from gh-pages to develop February 2, 2025 11:07
@sakno sakno changed the base branch from develop to gh-pages February 2, 2025 11:07
@sakno sakno self-assigned this Feb 2, 2025
@sakno sakno added the documentation Issues related to documentation label Feb 2, 2025
@sakno
Copy link
Collaborator

sakno commented Feb 2, 2025

@jjjmuniz , thanks for your contribution! Could you please change the target branch from gh-pages to develop?

@jjjmuniz jjjmuniz changed the base branch from gh-pages to develop February 3, 2025 15:55
incorrect comment
@jjjmuniz
Copy link
Author

jjjmuniz commented Feb 3, 2025

@sakno I reviewed the contribution guidelines. This should look better now.

@sakno sakno merged commit a0b5ecb into dotnet:develop Feb 12, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues related to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants