Skip to content

Commit 84ca961

Browse files
committed
Fix warnings
1 parent 3f85e5f commit 84ca961

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.swift-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0

Source/Calculators/WaveCalculator.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ public struct WaveCalculator {
4545
return AcousticWave.speed / wavelength
4646
}
4747

48-
public static func wavelength(frequency frequency: Double) throws -> Double {
48+
public static func wavelength(frequency: Double) throws -> Double {
4949
guard PitchCalculator.isValidFrequency(frequency) else {
5050
throw PitchError.invalidFrequency
5151
}
5252

5353
return AcousticWave.speed / frequency
5454
}
5555

56-
public static func wavelength(period period: Double) throws -> Double {
56+
public static func wavelength(period: Double) throws -> Double {
5757
guard isValidPeriod(period) else {
5858
throw PitchError.invalidPeriod
5959
}

0 commit comments

Comments
 (0)