MAINT: fix typo in error message in optimize.newton.