Skip to content

Commit

Permalink
Additional comment fixes from Guillaume
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentyrone committed Apr 29, 2023
1 parent bc9f6e7 commit 35e15a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/IntegerUtilities/ShiftWithRounding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ 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)
///
/// // 4/4 is exactly 1, so this does not trap.
/// 4.shifted(rightBy: 2, rounding: .trap)
/// 4.shifted(rightBy: 2, rounding: .requireExact)
///
/// // 5/2 is 2.5, which is not an integer, so this traps.
/// 5.shifted(rightBy: 1, rounding: .requireExact)
Expand Down

0 comments on commit 35e15a3

Please sign in to comment.