我試圖做一個簡單的加法程序,但是當我把我的讓利功能在viewDidLoad中,它給了我這個錯誤:中恆viewDidLoad中錯誤
initialization of immutable value 'doMath' was never used; consider replacing with assignment to '_' or removing it.
下面是代碼
let doMath: (Int!, Int!) -> Int =
mathFunction(text1, text2)
}
我該怎麼辦?