codelab-kotlin-coroutines
codelab-kotlin-coroutines copied to clipboard
Incorrect return argument in the call funtion getPlantsWithGrowZoneNumberFlow
In the update repository in the section 10 say:
fun getPlantsWithGrowZoneFlow(growZoneNumber: GrowZone): Flow<List<Plant>> { return plantDao.getPlantsWithGrowZoneNumberFlow(growZoneNumber.number) }
the correct is:
fun getPlantsWithGrowZoneFlow(growZoneNumber: GrowZone): Flow<List<Plant>> { return plantDao.getPlantsWithGrowZoneNumberFlow(growZone.number) }
The return type is correct. It's just the typo in the naming that is misleading.