PowerShell-Docs icon indicating copy to clipboard operation
PowerShell-Docs copied to clipboard

About_Splatting doesn't renders correctly due to incorrect markdown

Open HemantMahawar opened this issue 9 years ago • 4 comments

Version(s) of document impacted

  • [x] Impacts 5.1 document https://msdn.microsoft.com/powershell/reference/5.1/Microsoft.PowerShell.Core/about/about_Splatting
  • [x] Impacts 5.0 document https://msdn.microsoft.com/powershell/reference/5.0/Microsoft.PowerShell.Core/about/about_Splatting
  • [x] Impacts 4.0 document https://msdn.microsoft.com/powershell/reference/4.0/Microsoft.PowerShell.Core/about/about_Splatting
  • [x] Impacts 3.0 document https://msdn.microsoft.com/powershell/reference/3.0/Microsoft.PowerShell.Core/about/about_Splatting

HemantMahawar avatar Feb 03 '17 22:02 HemantMahawar

The output on this line is not correct.

It is not even close...the correct output

PS C:> Test2 -a 1 -b 2 -c 3
1
2
3

Key Value
--- -----
b       2
c       3

As well the also see section at the end of the document should provide links to the references, not just list them on the page.

wsmelton avatar Feb 08 '17 22:02 wsmelton

@wsmelton Why do you think the output is not correct? My looks exactly like the one in the docs:

PS C:\> function Test1
>> {
>>     param($a, $b, $c)
>>
>>     $a
>>     $b
>>     $c
>> }
PS C:\>
PS C:\> function Test2
>> {
>>     param($a, $b, $c)
>>
>>     #Call the Test1 function with $a, $b, and $c.
>>     Test1 @PsBoundParameters
>>
>>     #Call the Test1 function with $b and $c, but not with $a
>>     $LimitedParameters = $PSBoundParameters
>>     $LimitedParameters.Remove("a") | Out-Null
>>     Test1 @LimitedParameters
>> }
PS C:\>
PS C:\> Test2 -a 1 -b 2 -c 3
1
2
3
2
3
PS C:\>

exchange12rocks avatar Feb 09 '17 22:02 exchange12rocks

Ran that the first time and the output I provided is what I got on my machine. Ran it again though and it matches...oh well.

wsmelton avatar Feb 10 '17 12:02 wsmelton

This appears to have been self-resolved and most of the changes @HemantMahawar started to make have been made since through other PRs. Going to close this. If it becomes an issue again, please open a new issue.

DCtheGeek avatar Jun 02 '18 23:06 DCtheGeek