Update secant/Util/Clamped.swift

Co-authored-by: Adam <adam@olemae.com>
This commit is contained in:
Lukas Korba 2022-02-18 15:26:42 +01:00 committed by GitHub
parent 895a43376d
commit ad92c8be26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ struct Clamped<Value: Comparable> {
value = clamp(value: wrappedValue, range: range)
}
private func clamp(value: Value, range: ClosedRange<Value>) -> Value {
private func clamp(_ value: Value, using range: ClosedRange<Value>) -> Value {
min(range.upperBound, max(range.lowerBound, wrappedValue))
}
}