Skip to content

Commit 203bb38

Browse files
Fix parameter name in FactorialCalculator.kt
1 parent 315896b commit 203bb38

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/usecases/coroutines/usecase12

1 file changed

+2
-2
lines changed

app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/usecases/coroutines/usecase12/FactorialCalculator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ class FactorialCalculator(
1111

1212
suspend fun calculateFactorial(
1313
factorialOf: Int,
14-
numberOfThreads: Int
14+
numberOfCoroutines: Int
1515
): BigInteger {
1616

17-
val subRanges = createSubRangeList(factorialOf, numberOfThreads)
17+
val subRanges = createSubRangeList(factorialOf, numberOfCoroutines)
1818
return withContext(defaultDispatcher) {
1919
subRanges.map { subRange ->
2020
async {

0 commit comments

Comments
 (0)