Skip to content

Commit 4ac3c21

Browse files
Update faq.md
1 parent be58861 commit 4ac3c21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/basics/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function fff_incorrect(var, p)
5858
end
5959
6060
v_true = [1.0, 0.1, 2.0, 0.5]
61-
v_init = v_true .+ randn!(similar(v_true)) * 0.1
61+
v_init = v_true .+ Random.randn!(similar(v_true)) * 0.1
6262
6363
prob_oop = NLS.NonlinearLeastSquaresProblem{false}(fff_incorrect, v_init)
6464
try
@@ -145,7 +145,7 @@ it will be dynamic and lead to dynamic dispatch. To fix this, we directly specif
145145
chunksize:
146146

147147
```@example type_unstable
148-
@code_warntype solve(
148+
InteractiveUtils.@code_warntype solve(
149149
prob,
150150
NewtonRaphson(;
151151
autodiff = AutoForwardDiff(; chunksize = NonlinearSolve.pickchunksize(prob.u0))

0 commit comments

Comments
 (0)