Commit 84ca961 1 parent 3f85e5f commit 84ca961 Copy full SHA for 84ca961
File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ 3.0
Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ public struct WaveCalculator {
45
45
return AcousticWave . speed / wavelength
46
46
}
47
47
48
- public static func wavelength( frequency frequency : Double ) throws -> Double {
48
+ public static func wavelength( frequency: Double ) throws -> Double {
49
49
guard PitchCalculator . isValidFrequency ( frequency) else {
50
50
throw PitchError . invalidFrequency
51
51
}
52
52
53
53
return AcousticWave . speed / frequency
54
54
}
55
55
56
- public static func wavelength( period period : Double ) throws -> Double {
56
+ public static func wavelength( period: Double ) throws -> Double {
57
57
guard isValidPeriod ( period) else {
58
58
throw PitchError . invalidPeriod
59
59
}
You can’t perform that action at this time.
0 commit comments