Update Sources/IntegerUtilities/ShiftWithRounding.swift

Co-authored-by: Guillaume Lessard <glessard@users.noreply.github.com>
This commit is contained in:
Stephen CanonandGuillaume Lessard authored and GitHub committed 2023-04-28 22:29:25 -04:00
1 parent ef6dbc6e78
commit bc9f6e7368
1 file changed
+1 -1
@@ -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)
///