Skip to content

Commit

Permalink
Fixed description for ConvertTo-Array()
Browse files Browse the repository at this point in the history
  • Loading branch information
texhex committed Apr 15, 2017
1 parent 844b056 commit e892fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MPSXM.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ function ConvertTo-Array()
{
<#
.SYNOPSIS
Convert a single value or a list of objects to an array; this way array.Count or a foreach() loop always works. An input of $null will result in a array with count 0.
Convert a single value or a list of objects to an array; this way (Array).Count or a ForEach() loop always works. An input of $null will result in an array with length 0.
.PARAMETER InputObject
A single object, a list of objects or $null
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ConvertFrom-UTC [-DateTime] <DateTime>
- *DateTime* - The DateTime to be converted to local time from UTC. Inputs not in UTC will result in an exception.

### ConvertTo-Array ###
Convert a single value or a list of objects to an array; this way array.Count or a foreach() loop always works. An input of $null will result in a array with count 0.
Convert a single value or a list of objects to an array; this way (Array).Count or a ForEach() loop always works. An input of $null will result in an array with length 0.
```powershell
ConvertTo-Array [[-InputObject] <Object>]
```
Expand Down Expand Up @@ -341,8 +341,6 @@ Test-String [[-String] <String>] -StartsWith [[-SearchFor] <String>] [-CaseSensi
- *SearchFor* - The string beeing sought
- *CaseSensitive* - Perform an operation that respect letter casing, so [ABC] is different from [aBC].





<!---------------------------------- STOP HERE ---------------------------------->
Expand Down

0 comments on commit e892fb5

Please sign in to comment.