fix error in split() examples (closes #22459)

Patch by Raúl Cumplido.
merge 3.4 (#22459)