Skip to content

Commit bc9f6e7

Browse files
Update Sources/IntegerUtilities/ShiftWithRounding.swift
Co-authored-by: Guillaume Lessard <[email protected]>
1 parent ef6dbc6 commit bc9f6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/IntegerUtilities/ShiftWithRounding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extension BinaryInteger {
2727
/// // is odd.
2828
/// 3.shifted(rightBy: 1, rounding: .toOdd)
2929
///
30-
/// // 7/4 = 1.75, so the result is 1 with probability 1/4, and 2
30+
/// // 7/4 = 1.75, so the result is 1 with probability 1/4, or 2
3131
/// // with probability 3/4.
3232
/// 7.shifted(rightBy: 2, rounding: .stochastically)
3333
///

0 commit comments

Comments
 (0)