Skip to content

Commit addfdf6

Browse files
committed
Fix a typo
1 parent 3fc1e28 commit addfdf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/direct.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function sparsehessian(O, vars::AbstractVector; simplify = true)
214214
end
215215

216216
function toexpr(O)
217-
!istree(O) && return s
217+
!istree(O) && return O
218218
if isa(operation(O), Differential)
219219
return :(derivative($(toexpr(arguments(O)[1])),$(toexpr(operation(O).x))))
220220
elseif isa(operation(O), Sym)

0 commit comments

Comments
 (0)