The phrase "nasty comments" refers to unpleasant or mean-spirited remarks made by someone towards another person.