Merge pull request #16319 from Domon/fix-each-validator-example

Fix example code of EachValidator [ci skip]