From 055e752f842169bddb76d02db2f42fd6fa45a5dd Mon Sep 17 00:00:00 2001 From: Ted Hudek Date: Wed, 19 Mar 2025 15:24:32 -0700 Subject: [PATCH 1/2] Update about_Hash_Tables.md hash table->hashtable --- .../About/about_Hash_Tables.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Hash_Tables.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Hash_Tables.md index 962385dab3d3..19c5f16533a1 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Hash_Tables.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Hash_Tables.md @@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell. ## Long description A hashtable, also known as a dictionary or associative array, is a compact data -structure that stores one or more key-value pairs. For example, a hash table +structure that stores one or more key-value pairs. For example, a hashtable might contain a series of IP addresses and computer names, where the IP addresses are the keys and the computer names are the values, or vice versa. @@ -431,8 +431,8 @@ $now = (Get-Date) $hash.Add($t, $now) ``` -You can't use a subtraction operator to remove a key-value pair from a hash -table, but you can use the `Remove()` method of the hashtable object. The +You can't use a subtraction operator to remove a key-value pair from a hashtable, +but you can use the `Remove()` method of the hashtable object. The `Remove` method has the following syntax: ``` @@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method of hashtables to enumerate the keys and values, and then use the `Sort-Object` cmdlet to sort the enumerated values for display. -For example, the following commands enumerate the keys and values in the hash -table in the `$p` variable and then sort the keys in alphabetical order. +For example, the following commands enumerate the keys and values in the hashtable +in the `$p` variable and then sort the keys in alphabetical order. ```powershell PS> $p.GetEnumerator() | Sort-Object -Property key From a6f3bbd2d55b9a99f6d17f0227823ed284a58022 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 19 Mar 2025 17:50:53 -0500 Subject: [PATCH 2/2] copy changes to all versions --- .../About/about_Hash_Tables.md | 10 +++++----- .../About/about_Hash_Tables.md | 10 +++++----- .../About/about_Hash_Tables.md | 8 ++++---- .../About/about_Hash_Tables.md | 10 +++++----- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Hash_Tables.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Hash_Tables.md index 45eb67522d2b..ea9dc3daf56b 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Hash_Tables.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Hash_Tables.md @@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell. ## Long description A hashtable, also known as a dictionary or associative array, is a compact data -structure that stores one or more key-value pairs. For example, a hash table +structure that stores one or more key-value pairs. For example, a hashtable might contain a series of IP addresses and computer names, where the IP addresses are the keys and the computer names are the values, or vice versa. @@ -431,8 +431,8 @@ $now = (Get-Date) $hash.Add($t, $now) ``` -You can't use a subtraction operator to remove a key-value pair from a hash -table, but you can use the `Remove()` method of the hashtable object. The +You can't use a subtraction operator to remove a key-value pair from a +hashtable, but you can use the `Remove()` method of the hashtable object. The `Remove` method has the following syntax: ``` @@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method of hashtables to enumerate the keys and values, and then use the `Sort-Object` cmdlet to sort the enumerated values for display. -For example, the following commands enumerate the keys and values in the hash -table in the `$p` variable and then sort the keys in alphabetical order. +For example, the following commands enumerate the keys and values in the +hashtable in the `$p` variable and then sort the keys in alphabetical order. ```powershell PS> $p.GetEnumerator() | Sort-Object -Property key diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Hash_Tables.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Hash_Tables.md index 25d2bf72ac37..d7fc46636af6 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Hash_Tables.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Hash_Tables.md @@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell. ## Long description A hashtable, also known as a dictionary or associative array, is a compact data -structure that stores one or more key-value pairs. For example, a hash table +structure that stores one or more key-value pairs. For example, a hashtable might contain a series of IP addresses and computer names, where the IP addresses are the keys and the computer names are the values, or vice versa. @@ -431,8 +431,8 @@ $now = (Get-Date) $hash.Add($t, $now) ``` -You can't use a subtraction operator to remove a key-value pair from a hash -table, but you can use the `Remove()` method of the hashtable object. The +You can't use a subtraction operator to remove a key-value pair from a +hashtable, but you can use the `Remove()` method of the hashtable object. The `Remove` method has the following syntax: ``` @@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method of hashtables to enumerate the keys and values, and then use the `Sort-Object` cmdlet to sort the enumerated values for display. -For example, the following commands enumerate the keys and values in the hash -table in the `$p` variable and then sort the keys in alphabetical order. +For example, the following commands enumerate the keys and values in the +hashtable in the `$p` variable and then sort the keys in alphabetical order. ```powershell PS> $p.GetEnumerator() | Sort-Object -Property key diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Hash_Tables.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Hash_Tables.md index 19c5f16533a1..5af720358de3 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Hash_Tables.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Hash_Tables.md @@ -431,8 +431,8 @@ $now = (Get-Date) $hash.Add($t, $now) ``` -You can't use a subtraction operator to remove a key-value pair from a hashtable, -but you can use the `Remove()` method of the hashtable object. The +You can't use a subtraction operator to remove a key-value pair from a +hashtable, but you can use the `Remove()` method of the hashtable object. The `Remove` method has the following syntax: ``` @@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method of hashtables to enumerate the keys and values, and then use the `Sort-Object` cmdlet to sort the enumerated values for display. -For example, the following commands enumerate the keys and values in the hashtable -in the `$p` variable and then sort the keys in alphabetical order. +For example, the following commands enumerate the keys and values in the +hashtable in the `$p` variable and then sort the keys in alphabetical order. ```powershell PS> $p.GetEnumerator() | Sort-Object -Property key diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Hash_Tables.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Hash_Tables.md index 19adf00422b6..947e54e129f8 100644 --- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Hash_Tables.md +++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Hash_Tables.md @@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell. ## Long description A hashtable, also known as a dictionary or associative array, is a compact data -structure that stores one or more key-value pairs. For example, a hash table +structure that stores one or more key-value pairs. For example, a hashtable might contain a series of IP addresses and computer names, where the IP addresses are the keys and the computer names are the values, or vice versa. @@ -431,8 +431,8 @@ $now = (Get-Date) $hash.Add($t, $now) ``` -You can't use a subtraction operator to remove a key-value pair from a hash -table, but you can use the `Remove()` method of the hashtable object. The +You can't use a subtraction operator to remove a key-value pair from a +hashtable, but you can use the `Remove()` method of the hashtable object. The `Remove` method has the following syntax: ``` @@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method of hashtables to enumerate the keys and values, and then use the `Sort-Object` cmdlet to sort the enumerated values for display. -For example, the following commands enumerate the keys and values in the hash -table in the `$p` variable and then sort the keys in alphabetical order. +For example, the following commands enumerate the keys and values in the +hashtable in the `$p` variable and then sort the keys in alphabetical order. ```powershell PS> $p.GetEnumerator() | Sort-Object -Property key