From aab0836f70fa145c7f142125b030e180f82e546b Mon Sep 17 00:00:00 2001 From: Thomas Vetter <80452158+thomvet@users.noreply.github.com> Date: Sat, 31 Dec 2022 06:33:21 +0100 Subject: [PATCH 1/2] Fix minor typo in advanced.md --- docs/src/user/advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/user/advanced.md b/docs/src/user/advanced.md index b7f34970..084cdf28 100644 --- a/docs/src/user/advanced.md +++ b/docs/src/user/advanced.md @@ -248,7 +248,7 @@ want to disable this checking. 1. (preferred) Provide an extra `Val{false}()` argument to the differentiation function, e.g. ```julia - cfg = ForwarDiff.GradientConfig(g, x) + cfg = ForwardDiff.GradientConfig(g, x) ForwarDiff.gradient(f, x, cfg, Val{false}()) ``` If using as part of a library, the tag can be checked manually via From 37b1fe25b5cdf48cfeff38d805fcec0ba6ac90d9 Mon Sep 17 00:00:00 2001 From: Thomas Vetter <80452158+thomvet@users.noreply.github.com> Date: Sat, 31 Dec 2022 12:01:49 +0100 Subject: [PATCH 2/2] Update docs/src/user/advanced.md Co-authored-by: David Widmann --- docs/src/user/advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/user/advanced.md b/docs/src/user/advanced.md index 084cdf28..c34260d7 100644 --- a/docs/src/user/advanced.md +++ b/docs/src/user/advanced.md @@ -249,7 +249,7 @@ want to disable this checking. 1. (preferred) Provide an extra `Val{false}()` argument to the differentiation function, e.g. ```julia cfg = ForwardDiff.GradientConfig(g, x) - ForwarDiff.gradient(f, x, cfg, Val{false}()) + ForwardDiff.gradient(f, x, cfg, Val{false}()) ``` If using as part of a library, the tag can be checked manually via ```julia