diff --git a/docs/source/nnls_tutorial.rst b/docs/source/nnls_tutorial.rst index 2bb758459..9c4e5855f 100644 --- a/docs/source/nnls_tutorial.rst +++ b/docs/source/nnls_tutorial.rst @@ -210,8 +210,8 @@ Which is added to the :class:`Problem` as: .. code-block:: c++ CostFunction* cost_function = - new NumericDiffCostFunction( - new NumericDiffCostFunctor) + new NumericDiffCostFunction( + new NumericDiffCostFunctor); problem.AddResidualBlock(cost_function, NULL, &x); Notice the parallel from when we were using automatic differentiation