Kotlin and Android Development featuring Jetpack: Typo in PennyDropDatabase.getDatabase() (page 125)

Typo found in PennyDropDatabase.getDatabase() on page 125: “Instance?” should be “instance?”

What’s there:

    scope.launch {
->      Instance?.pennyDropDao()?.insertPlayers(
            AI.basicAI.map(AI::toPlayer)
        )
    }

What should be there:

    scope.launch {
->      instance?.pennyDropDao()?.insertPlayers(
            AI.basicAI.map(AI::toPlayer)
        )
    }

The code in the .zip file is correct.

Thanks! I changed this a while back since there was no reason for Instance to be capitalized.

Also, just a heads up that I am seeing all your posts and am making notes of each one, so keep the updates coming (and thank you)!