Fix a small error in a code example for validation