Skip to content

Commit

Permalink
chore: Regenerate json file
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlydog committed Sep 25, 2023
1 parent acfcdf8 commit 91ad409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiPS/PowerShellTips.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
{
"CreatedDate": "2023-09-23T00:00:00",
"Title": "Define hardcoded array items on new lines without commas",
"TipText": "When defining hardcoded arrays with many values in PowerShell, you can define each item on a new line without commas. This makes it easier to read and maintain the array items, and you don't have to worry about commas when adding or rearranging items.\r\n\r\nIf you choose to define multiple array values on a single line, then you will need a comma between each item on the line.",
"TipText": "When defining hardcoded arrays with many values in PowerShell, you can define each item on a new line without commas; the commas are optional. This makes it easier to read and maintain the array items, and you don't have to worry about commas when adding or rearranging items.\r\n\r\nIf you choose to define multiple array values on a single line, then you will need a comma between each item on the line.",
"Example": "[string[]] $stringArray = @(\r\n 'Notice that each item is on a new line without commas.'\r\n 'This is much easier to read and maintain.'\r\n 'And you can add comments to explain each item if needed.' # Like this.\r\n)\r\n\r\n[int[]] $intArray = @(1, 2, 3)",
"Urls": [
"https://learn.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-arrays?view=powershell-7.3#create-an-array"
Expand Down

0 comments on commit 91ad409

Please sign in to comment.