Programming Ruby 3.2 (5th Edition): B2.0 page 436, why \ in heredoc?

Yeah, I think you are correct. Fixed