Update the_controller.rst

Corrected error in the sample code.
A comma after the last array element? Why so?