From 67c9a0460052ca1ccac51feb652f5d825ec9fac7 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Mon, 9 Mar 2026 10:07:41 -0500 Subject: [PATCH] Fix code typos (#12824) --- .../learn/deep-dives/everything-about-hashtable.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reference/docs-conceptual/learn/deep-dives/everything-about-hashtable.md b/reference/docs-conceptual/learn/deep-dives/everything-about-hashtable.md index e4ddf78701b8..0ba399aba13a 100644 --- a/reference/docs-conceptual/learn/deep-dives/everything-about-hashtable.md +++ b/reference/docs-conceptual/learn/deep-dives/everything-about-hashtable.md @@ -1,7 +1,7 @@ --- description: Hashtables are really important in PowerShell so it's good to have a solid understanding of them. ms.custom: contributor-KevinMarquette -ms.date: 10/22/2025 +ms.date: 03/09/2026 title: Everything you wanted to know about hashtables --- # 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 zero, that statement would return `$false` unexpectedly. ```powershell -if( $person.age -ne $null ){...} +if( $null -ne $person.age ){...} ``` 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 param( $InputObject ) - $TempCliXmlString = [System.Management.Automation.PSSerializer]::Serialize($obj, [int32]::MaxValue) + $TempCliXmlString = [System.Management.Automation.PSSerializer]::Serialize( + $InputObject, [int32]::MaxValue) return [System.Management.Automation.PSSerializer]::Deserialize($TempCliXmlString) } ```