Newbie: Why the commented line stops the snippet from compiling?

push_str mutates string in-place, it doesn't return the result. So you have to return the resulting string explicitly:

fn pluralize(s: String) -> String {
    s.push_str("s");
    s
}

For future reference, it's much better to copy-paste the code and format it according to the pinned topic and not post it as image, so that we can copy it and test locally or in the playground.