Skip to content

Commit 35e15a3

Browse files
committed
Additional comment fixes from Guillaume
1 parent bc9f6e7 commit 35e15a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/IntegerUtilities/ShiftWithRounding.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ extension BinaryInteger {
173173
/// // is odd.
174174
/// 3.shifted(rightBy: 1, rounding: .toOdd)
175175
///
176-
/// // 7/4 = 1.75, so the result is 1 with probability 1/4, and 2
176+
/// // 7/4 = 1.75, so the result is 1 with probability 1/4, or 2
177177
/// // with probability 3/4.
178178
/// 7.shifted(rightBy: 2, rounding: .stochastically)
179179
///
180180
/// // 4/4 is exactly 1, so this does not trap.
181-
/// 4.shifted(rightBy: 2, rounding: .trap)
181+
/// 4.shifted(rightBy: 2, rounding: .requireExact)
182182
///
183183
/// // 5/2 is 2.5, which is not an integer, so this traps.
184184
/// 5.shifted(rightBy: 1, rounding: .requireExact)

0 commit comments

Comments
 (0)