Просмотр исходного кода

Updated powershell docs to correct syntax, fixed my goofy typos

= 3 лет назад
Родитель
Сommit
ae3715222f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      docs/publish.md

+ 2 - 2
docs/publish.md

@@ -1746,7 +1746,7 @@ And the same example using [JSON publishing](#publish-as-json):
             }
             }
         )
         )
 
 
-    # Powershell requires the 'Depth' argument to equal 3 here to expand 'Extras', otherwise it will read System.Collections.Hashtable in the resturned json
+    # Powershell requires the 'Depth' argument to equal 3 here to expand 'Extras', otherwise it will read System.Collections.Hashtable in the returned json
 
 
     } | ConvertTo-Json -Depth 3
     } | ConvertTo-Json -Depth 3
     Invoke-RestMethod -Method 'Post' -Uri $uri -Body $body -ContentType "application/json" -UseBasicParsing
     Invoke-RestMethod -Method 'Post' -Uri $uri -Body $body -ContentType "application/json" -UseBasicParsing
@@ -2018,7 +2018,7 @@ And the same example using [JSON publishing](#publish-as-json):
                 body    = '{"action": "close"}'
                 body    = '{"action": "close"}'
             }
             }
         )
         )
-        # Powershell requires the 'Depth' argument to equal 3 here to expand 'headers', otherwise it will read System.Collections.Hashtable in the resturned json    
+        # Powershell requires the 'Depth' argument to equal 3 here to expand 'headers', otherwise it will read System.Collections.Hashtable in the returned json    
     } | ConvertTo-Json -Depth 3
     } | ConvertTo-Json -Depth 3
     Invoke-RestMethod -Method 'Post' -Uri $uri -Body $body -ContentType "application/json" -UseBasicParsing
     Invoke-RestMethod -Method 'Post' -Uri $uri -Body $body -ContentType "application/json" -UseBasicParsing
     ```
     ```