Skip to content

Conversation

michaeltlombardi
Copy link
Contributor

PR Summary

Prior to this change, the casing for the parameters to the switch keyword was inconsistently documented. This change:

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributors guide.
  • Style: This PR adheres to the style guide.

Prior to this change, the casing for the parameters to the
`switch` keyword was inconsistently documented. This change:

- Updates examples, syntax blocks, and prose to use the
  PascalCase for the parameters, not lowercase.
- Fixes MicrosoftDocs#11811
Copy link
Contributor

Learn Build status updates of commit 6025976:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Break.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/About/about_Language_Keywords.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Core/About/about_Break.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/About/about_Language_Keywords.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Core/About/about_Break.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Core/About/about_Language_Keywords.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Core/About/about_Language_Keywords.md ✅Succeeded View (powershell-7.6)
reference/docs-conceptual/lang-spec/chapter-08.md ✅Succeeded View (>=powershell-5.1)
reference/docs-conceptual/lang-spec/chapter-15.md ✅Succeeded View (>=powershell-5.1)
reference/docs-conceptual/learn/deep-dives/everything-about-switch.md ✅Succeeded View (>=powershell-5.1)

For more details, please refer to the build report.

For any questions, please:

@sdwheeler sdwheeler merged commit 6993a2b into MicrosoftDocs:main Feb 19, 2025
4 checks passed
@michaeltlombardi michaeltlombardi deleted the gh-11811/main/switch-param-casing branch July 31, 2025 15:40
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.

Establish the official switch statement parameter case (PascalCase vs lowercase)

2 participants