diff --git a/src/main/scala/main.scala b/src/main/scala/main.scala index 70ef690..2b98572 100644 --- a/src/main/scala/main.scala +++ b/src/main/scala/main.scala @@ -41,7 +41,7 @@ def searchNameByNumber(adressen:List[kontakt], searchedNumber:String):String = { def binKoeff(m:Int, n:Int):Int = { def fac(a: Int): Int = { - if (a == 1) return 1 + if (a == 0) return 1 else a * fac(a - 1) }