Fix warning text in code to match warnings.md