From 77928f68b8b581a6441b71a33e6caf6e514042da Mon Sep 17 00:00:00 2001 From: Mikey Lombardi Date: Wed, 25 Jun 2025 14:52:31 -0500 Subject: [PATCH] (GH-12177) Fix `Start-Sleep` example Prior to this change, the example for `Start-Sleep` in Windows PowerShell showed defining the value of the `-Second` parameter as a non-integer. In Windows PowerShell, the cmdlet only accepts integers. This change updates the example to show using an integer instead of a fractional number of seconds. - Fixes #12177 --- reference/5.1/Microsoft.PowerShell.Utility/Start-Sleep.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Start-Sleep.md b/reference/5.1/Microsoft.PowerShell.Utility/Start-Sleep.md index 96c6c4393781..a0abfafcb0de 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Start-Sleep.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Start-Sleep.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 01/22/2023 +ms.date: 06/25/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/start-sleep?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: Start-Sleep @@ -35,12 +35,12 @@ repeating an operation. ## EXAMPLES -### Example 1: Pause execution for 1.5 seconds +### Example 1: Pause execution for 1 second -In this example, the execution of commands pauses for one and one-half seconds. +In this example, the execution of commands pauses for one second. ```powershell -Start-Sleep -Seconds 1.5 +Start-Sleep -Seconds 1 ``` ### Example 2: Pause execution at the command line