What does the warnning suppose to mean? I don't quite get what's wrong with my codes.
struct RunningWorkout {
var distance: Double
var time: Double
var elevation: Double
func postWorkoutStats() {
print(distance, time, elevation)
}
}
let kkkk = RunningWorkout(distance: 444, time: 3.45, elevation: 9.89)
var gg = kkkk.postWorkoutStats()In line12 the compiler complaint is "Variable 'gg' inferred to have type '()', which may be unexpected" What does it mean? Anybody knows that? Thanks😂