From bc9f6e736893a38dc86aff502dcd056459c16716 Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Fri, 28 Apr 2023 22:29:25 -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 721c567..1adcd18 100644 --- a/Sources/IntegerUtilities/ShiftWithRounding.swift +++ b/Sources/IntegerUtilities/ShiftWithRounding.swift @@ -27,7 +27,7 @@ extension BinaryInteger { /// // is odd. /// 3.shifted(rightBy: 1, rounding: .toOdd) /// - /// // 7/4 = 1.75, so the result is 1 with probability 1/4, and 2 + /// // 7/4 = 1.75, so the result is 1 with probability 1/4, or 2 /// // with probability 3/4. /// 7.shifted(rightBy: 2, rounding: .stochastically) ///