Why did Lily stop being Snape's friend?

He called her a mudblood.