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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix example with an invalid preprocessor expression #40857

Merged
merged 1 commit into from May 13, 2024

Conversation

Flash0ver
Copy link
Contributor

@Flash0ver Flash0ver commented May 12, 2024

Summary

An example of the C# preprocessor directives page is using an #elif directive without a condition, which is an error.
Changing this to the expected #else directive, preceding the code that showcases backward compatibility.


Internal previews

馃搫 File 馃敆 Preview link
docs/csharp/language-reference/preprocessor-directives.md C# preprocessor directives

elif directive without a condition
@dotnet-bot dotnet-bot added this to the May 2024 milestone May 12, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label May 12, 2024
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Flash0ver

This LGTM. I'll :shipit:

@BillWagner BillWagner merged commit b6743f3 into dotnet:main May 13, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc lang-reference/subsvc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants