diff --git a/examples/cpp/tutorial.cpp b/examples/cpp/tutorial.cpp index 091dfab2d..25cc85c31 100644 --- a/examples/cpp/tutorial.cpp +++ b/examples/cpp/tutorial.cpp @@ -89,8 +89,8 @@ void automatic_differentiation() { // dfdx is 2 * x // Get the second derivative by composing grad with grad - auto df2dx2 = grad(grad(fn))(x); - // df2dx2 is 2 + auto d2fdx2 = grad(grad(fn))(x); + // d2fdx2 is 2 } int main() {