Fix Example for Get-Member -InputObject#3373
Fix Example for Get-Member -InputObject#3373sdwheeler merged 11 commits intoMicrosoftDocs:stagingfrom
Conversation
* Fix syntax error * Fix command sequence and commands used * Fix unclear example sequence Thanks to [Ramon TAN](https://powershell.org/forums/topic/get-member-examples-different-results-on-my-pc/#post-127867) for stumbling across this in confusion!
|
Update v5 document with change
update v5.0 document with change
Update v4.0 document
Update v3.0 document
|
Not sure what all that's about, I only changed a few files here. 😄 Anyway, finished updating all the versions of the help. All versions had similar logical issues with the code example; I'm surprised it's been there in some form or another since v3.0 with nobody pointing out that the code doesn't work in that section! |
|
| ### Example 6: Get members for an array | ||
| ``` | ||
| PS C:\> $A = Get-Member - InputObject @(1) | ||
| PS C:\> $A = @(1) |
There was a problem hiding this comment.
If you are going to include the PowerShell prompt in examples, please use "PS>" for the prompt. See https://github.com/PowerShell/PowerShell-Docs/blob/staging/contributing/5-FORMATTING-CODE.md#simple-illustration-example
Please make this change to each version of the file.
There was a problem hiding this comment.
That's usually my preference, but I opted to retain the original format of the example. I'll change these ones for now. 😄
|
@vexx32 Thank you for your contribution. I have a minor change request. See my review comment. Please apply that same change to all versions. |
Trim prompt from examples in 3.0 file
Trim path from prompts in 4.0 file
Trim paths from prompts in 5.0 document
Trim Paths from prompts in 5.1 file
2nd pass for 5.0 file
✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
|
@vexx32 Thanks. I know that it was inconsistent across the versions. It was a style change we made a while back and we are trying to use the new style whenever we touch an article. |
Trim paths from prompts in v6 file
|
Think that should be everything. Noted a couple of other examples had some minor typographical issues around the prompts as well, so did a full pass on the examples in all the files. 😄 |
✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
* Fix Example for Get-Member -InputObject * Fix syntax error * Fix command sequence and commands used * Fix unclear example sequence Thanks to [Ramon TAN](https://powershell.org/forums/topic/get-member-examples-different-results-on-my-pc/#post-127867) for stumbling across this in confusion! * Update Get-Member.md Update v5 document with change * Update Get-Member.md update v5.0 document with change * Update Get-Member.md Update v4.0 document * Update Get-Member.md Update v3.0 document * Update Get-Member.md Trim prompt from examples in 3.0 file * Update Get-Member.md Trim path from prompts in 4.0 file * Update Get-Member.md Trim paths from prompts in 5.0 document * Update Get-Member.md Trim Paths from prompts in 5.1 file * Update Get-Member.md 2nd pass for 5.0 file * Update Get-Member.md Trim paths from prompts in v6 file
Thanks to Ramon TAN for stumbling across this in confusion!
Version(s) of document impacted
Reason(s) for not updating all version of documents