Skip to content

Commit 919e349

Browse files
committed
fix: typos
1 parent fc2d60c commit 919e349

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/NonlinearSolveBase/src/autodiff.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Here we determine the preferred AD backend. We have a predefined list of ADs and then
2-
# we select the first one that is avialable and would work with the problem.
2+
# we select the first one that is available and would work with the problem.
33

44
# Ordering is important here. We want to select the first one that is compatible with the
55
# problem.
@@ -29,7 +29,7 @@ function select_forward_mode_autodiff(
2929
if incompatible_backend_and_problem(prob, ad)
3030
adₙ = select_forward_mode_autodiff(prob, nothing; warn_check_mode)
3131
@warn "The chosen AD backend `$(ad)` does not support the chosen problem. This \
32-
could be because the backend package for the choosen AD isn't loaded. After \
32+
could be because the backend package for the chosen AD isn't loaded. After \
3333
running autodiff selection detected `$(adₙ)` as a potential forward mode \
3434
backend."
3535
return adₙ
@@ -59,7 +59,7 @@ function select_reverse_mode_autodiff(
5959
if incompatible_backend_and_problem(prob, ad)
6060
adₙ = select_reverse_mode_autodiff(prob, nothing; warn_check_mode)
6161
@warn "The chosen AD backend `$(ad)` does not support the chosen problem. This \
62-
could be because the backend package for the choosen AD isn't loaded. After \
62+
could be because the backend package for the chosen AD isn't loaded. After \
6363
running autodiff selection detected `$(adₙ)` as a potential reverse mode \
6464
backend."
6565
return adₙ
@@ -80,7 +80,7 @@ function select_jacobian_autodiff(prob::AbstractNonlinearProblem, ad::AbstractAD
8080
if incompatible_backend_and_problem(prob, ad)
8181
adₙ = select_jacobian_autodiff(prob, nothing)
8282
@warn "The chosen AD backend `$(ad)` does not support the chosen problem. This \
83-
could be because the backend package for the choosen AD isn't loaded. After \
83+
could be because the backend package for the chosen AD isn't loaded. After \
8484
running autodiff selection detected `$(adₙ)` as a potential jacobian \
8585
backend."
8686
return adₙ

0 commit comments

Comments
 (0)