Skip to content

Commit 5a56aa9

Browse files
committed
fix docstring
1 parent 97c5324 commit 5a56aa9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/systems/abstractsystem.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -718,14 +718,14 @@ function add_initialization_parameters(sys::AbstractSystem)
718718
end
719719

720720
"""
721-
Returns true if the variable or parameter `var` is of the form `Initial(x)`.
722-
"""
723-
function isInitial(var)
724-
var = unwrap(var)
725-
if iscall(var)
726-
operation(var) isa Initial && return true
727-
if operation(var) === getindex
728-
operation(arguments(var)[1]) isa Initial && return true
721+
Returns true if the parameter `p` is of the form `Initial(x)`.
722+
"""
723+
function isInitial(p)
724+
p = unwrap(p)
725+
if iscall(p)
726+
operation(p) isa Initial && return true
727+
if operation(p) === getindex
728+
operation(arguments(p)[1]) isa Initial && return true
729729
end
730730
else
731731
return false

0 commit comments

Comments
 (0)