Add doctest and improve readability for move_to_end() example. (GH-30370) (GH-30373)

1 file changed