Typo in Listing 18.16?


#1

Listing 18.16 has the following contents

Listing 18.16 The as operator (Tavern.kt)
...
private fun selectHomeTown() = File("data/towns.txt")
       .readText()
       .split("\n")
       .randomizer()

It seems this should be the continuation of Listing 18.15, which refers to Player.kt and not Tavern.kt


#2

Good catch. Thank you!