Programming Phoenix LiveView (B10): assign_form/2 helper function out-of-place (page 138)

Code snippet on page 138 contains a helper function assign_form/2 that isn’t used within the snippet itself; it’s used by the handle_event/3 function in the snippet on page 142.

Moving that function from the snippet on page 138 to the one on page 142 makes more sense and reduces (any possible) confusion.