Skip to content

Commit 43ddc35

Browse files
authored
README.md: Improve variable name in example (#741)
I believe `solve` returns a solution, not a solver, hence the variable should be called `sol` as in the second example.
1 parent 3e69faf commit 43ddc35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using NonlinearSolve, StaticArrays
2626
f(u, p) = u .* u .- 2
2727
u0 = @SVector[1.0, 1.0]
2828
prob = NonlinearProblem(f, u0)
29-
solver = solve(prob)
29+
sol = solve(prob)
3030

3131
## Bracketing Methods
3232

0 commit comments

Comments
 (0)