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 d59ec36 commit ef6dbc6
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 @@ -32,7 +32,7 @@ extension BinaryInteger {
/// 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 ef6dbc6

Please sign in to comment.