Skip to content

Commit

Permalink
Update Sources/IntegerUtilities/ShiftWithRounding.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Lessard <glessard@users.noreply.github.com>
  • Loading branch information
stephentyrone and glessard authored Apr 29, 2023
1 parent ef6dbc6 commit bc9f6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/IntegerUtilities/ShiftWithRounding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
///
Expand Down

0 comments on commit bc9f6e7

Please sign in to comment.