Skip to content

Commit 8225050

Browse files
fix more typos
1 parent 71c4cab commit 8225050

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/systems/abstractsystem.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ function ParentScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}})
776776
args = arguments(sym)
777777
a1 = setmetadata(args[1], SymScope,
778778
ParentScope(getmetadata(value(args[1]), SymScope, LocalScope())))
779-
maketerm(typeof(sym), operation(sym), [a1, args[2:end]...];
779+
maketerm(typeof(sym), operation(sym), [a1, args[2:end]...],
780780
symtype(sym), metadata(sym))
781781
else
782782
setmetadata(sym, SymScope,
@@ -795,7 +795,7 @@ function DelayParentScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}}, N)
795795
args = arguments(sym)
796796
a1 = setmetadata(args[1], SymScope,
797797
DelayParentScope(getmetadata(value(args[1]), SymScope, LocalScope()), N))
798-
maketerm(typeof(sym), operation(sym), [a1, args[2:end]...];
798+
maketerm(typeof(sym), operation(sym), [a1, args[2:end]...],
799799
symtype(sym), metadata(sym))
800800
else
801801
setmetadata(sym, SymScope,
@@ -811,7 +811,7 @@ function GlobalScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}})
811811
if iscall(sym) && operation(sym) == getindex
812812
args = arguments(sym)
813813
a1 = setmetadata(args[1], SymScope, GlobalScope())
814-
maketerm(typeof(sym), operation(sym), [a1, args[2:end]...];
814+
maketerm(typeof(sym), operation(sym), [a1, args[2:end]...],
815815
symtype(sym), metadata(sym))
816816
else
817817
setmetadata(sym, SymScope, GlobalScope())
@@ -829,13 +829,13 @@ function renamespace(sys, x)
829829
T = typeof(x)
830830
if iscall(x) && operation(x) isa Operator
831831
return maketerm(typeof(x), operation(x),
832-
Any[renamespace(sys, only(arguments(x)))];
832+
Any[renamespace(sys, only(arguments(x)))],
833833
symtype(x), metadata(x))::T
834834
end
835835
if iscall(x) && operation(x) === getindex
836836
args = arguments(x)
837837
return maketerm(
838-
typeof(x), operation(x), vcat(renamespace(sys, args[1]), args[2:end]);
838+
typeof(x), operation(x), vcat(renamespace(sys, args[1]), args[2:end]),
839839
symtype(x), metadata(x))::T
840840
end
841841
let scope = getmetadata(x, SymScope, LocalScope())
@@ -914,8 +914,8 @@ function namespace_expr(
914914
# metadata from the rescoped variable
915915
rescoped = renamespace(n, O)
916916
maketerm(typeof(rescoped), operation(rescoped), renamed,
917-
symtype(rescoped)
918-
metadata = metadata(rescoped))
917+
symtype(rescoped),
918+
metadata(rescoped))
919919
elseif Symbolics.isarraysymbolic(O)
920920
# promote_symtype doesn't work for array symbolics
921921
maketerm(typeof(O), operation(O), renamed, symtype(O), metadata(O))

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ function delay_to_function(expr, iv, sts, ps, h)
232232
elseif iscall(expr)
233233
return maketerm(typeof(expr),
234234
operation(expr),
235-
map(x -> delay_to_function(x, iv, sts, ps, h), arguments(expr));
235+
map(x -> delay_to_function(x, iv, sts, ps, h), arguments(expr)),
236236
symtype(expr), metadata(expr))
237237
else
238238
return expr

0 commit comments

Comments
 (0)