Skip to content

Commit

Permalink
(MAINT) Sync recent changes to about_Arrays (#11271)
Browse files Browse the repository at this point in the history
This change updates the 5.1, 7.2, and 7.5 files for `about_Arrays` to
match the changes made in #11251, #11252, and #11253.
  • Loading branch information
michaeltlombardi committed Jul 15, 2024
1 parent 73337da commit 1e51495
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
9 changes: 4 additions & 5 deletions reference/5.1/Microsoft.PowerShell.Core/About/about_Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ The following example shows how to select all odd numbers from the array.
9
```

This example show how to select the strings that aren't empty.
The next example shows how to select all non-empty strings.

```powershell
('hi', '', 'there').Where({$_.Length})
('hi', '', 'there').Where{ $_ }
```

```Output
Expand Down Expand Up @@ -1047,11 +1047,10 @@ Thursday, June 24, 2021 1:23:30 PM
```

The `set_LastWriteTime()` method is a _hidden_ member of the **FileInfo**
object. The following example shows how to find members that have a _hidden_
`set` method.
object. The following example shows how to find _hidden_ `set` methods.

```powershell
$files | Get-Member | Where-Object Definition -like '*set;*'
$files | Get-Member -Force -Name set_*
```

```Output
Expand Down
9 changes: 4 additions & 5 deletions reference/7.2/Microsoft.PowerShell.Core/About/about_Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ The following example shows how to select all odd numbers from the array.
9
```

This example show how to select the strings that aren't empty.
The next example shows how to select all non-empty strings.

```powershell
('hi', '', 'there').Where({$_.Length})
('hi', '', 'there').Where{ $_ }
```

```Output
Expand Down Expand Up @@ -1055,11 +1055,10 @@ Thursday, June 24, 2021 1:23:30 PM
```

The `set_LastWriteTime()` method is a _hidden_ member of the **FileInfo**
object. The following example shows how to find members that have a _hidden_
`set` method.
object. The following example shows how to find _hidden_ `set` methods.

```powershell
$files | Get-Member | Where-Object Definition -like '*set;*'
$files | Get-Member -Force -Name set_*
```

```Output
Expand Down
9 changes: 4 additions & 5 deletions reference/7.5/Microsoft.PowerShell.Core/About/about_Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ The following example shows how to select all odd numbers from the array.
9
```

This example show how to select the strings that aren't empty.
The next example shows how to select all non-empty strings.

```powershell
('hi', '', 'there').Where({$_.Length})
('hi', '', 'there').Where{ $_ }
```

```Output
Expand Down Expand Up @@ -1055,11 +1055,10 @@ Thursday, June 24, 2021 1:23:30 PM
```

The `set_LastWriteTime()` method is a _hidden_ member of the **FileInfo**
object. The following example shows how to find members that have a _hidden_
`set` method.
object. The following example shows how to find _hidden_ `set` methods.

```powershell
$files | Get-Member | Where-Object Definition -like '*set;*'
$files | Get-Member -Force -Name set_*
```

```Output
Expand Down

0 comments on commit 1e51495

Please sign in to comment.