mirror of
https://github.com/apple/swift-numerics
synced 2026-11-25 04:47:53 +00:00
Update Sources/IntegerUtilities/ShiftWithRounding.swift
Co-authored-by: Guillaume Lessard <glessard@users.noreply.github.com>
This commit is contained in:
1 parent
d59ec36291
commit
ef6dbc6e78
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user