Fix syntax error in example and a spelling error