Programming Phoenix LiveView B10: wrong arguments number in RatingLive.Show.stars (page 220)

Right you are on both counts! This will be fixed in the final release.