Change confusing part in ex. of class validator

Change confusing part in examples of class custom validator in YML and XML.