Skip to content

Commit 67c9a04

Browse files
authored
Fix code typos (#12824)
1 parent b13b1b7 commit 67c9a04

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reference/docs-conceptual/learn/deep-dives/everything-about-hashtable.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Hashtables are really important in PowerShell so it's good to have a solid understanding of them.
33
ms.custom: contributor-KevinMarquette
4-
ms.date: 10/22/2025
4+
ms.date: 03/09/2026
55
title: Everything you wanted to know about hashtables
66
---
77
# Everything you wanted to know about hashtables
@@ -333,7 +333,7 @@ detail in my logic. I started to use it to test if a key was present. When the v
333333
zero, that statement would return `$false` unexpectedly.
334334

335335
```powershell
336-
if( $person.age -ne $null ){...}
336+
if( $null -ne $person.age ){...}
337337
```
338338

339339
This works around that issue for zero values but not $null vs non-existent keys. Most of the time
@@ -1087,7 +1087,8 @@ function Get-DeepClone
10871087
param(
10881088
$InputObject
10891089
)
1090-
$TempCliXmlString = [System.Management.Automation.PSSerializer]::Serialize($obj, [int32]::MaxValue)
1090+
$TempCliXmlString = [System.Management.Automation.PSSerializer]::Serialize(
1091+
$InputObject, [int32]::MaxValue)
10911092
return [System.Management.Automation.PSSerializer]::Deserialize($TempCliXmlString)
10921093
}
10931094
```

0 commit comments

Comments
 (0)