Skip to content

Commit ef6dbc6

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

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
@@ -32,7 +32,7 @@ extension BinaryInteger {
3232
/// 7.shifted(rightBy: 2, rounding: .stochastically)
3333
///
3434
/// // 4/4 is exactly 1, so this does not trap.
35-
/// 4.shifted(rightBy: 2, rounding: .trap)
35+
/// 4.shifted(rightBy: 2, rounding: .requireExact)
3636
///
3737
/// // 5/2 is 2.5, which is not an integer, so this traps.
3838
/// 5.shifted(rightBy: 1, rounding: .requireExact)

0 commit comments

Comments
 (0)