From ef6dbc6e78238ebedef30481101c034f04f586e2 Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Fri, 28 Apr 2023 22:29:13 -0400 Subject: [PATCH] Update Sources/IntegerUtilities/ShiftWithRounding.swift Co-authored-by: Guillaume Lessard --- Sources/IntegerUtilities/ShiftWithRounding.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/IntegerUtilities/ShiftWithRounding.swift b/Sources/IntegerUtilities/ShiftWithRounding.swift index 01bf080..721c567 100644 --- a/Sources/IntegerUtilities/ShiftWithRounding.swift +++ b/Sources/IntegerUtilities/ShiftWithRounding.swift @@ -32,7 +32,7 @@ extension BinaryInteger { /// 7.shifted(rightBy: 2, rounding: .stochastically) /// /// // 4/4 is exactly 1, so this does not trap. - /// 4.shifted(rightBy: 2, rounding: .trap) + /// 4.shifted(rightBy: 2, rounding: .requireExact) /// /// // 5/2 is 2.5, which is not an integer, so this traps. /// 5.shifted(rightBy: 1, rounding: .requireExact)