fix ruby/map_and_flatten_to_flat_map snippet