Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed Mar 19, 2024
1 parent c4c4792 commit b9567dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/varname.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ end
"""
is_static_optic(l)
Return `true` if `l` is one or a composition of `identity`, `PropertyLens`, and `IndexLens`.
Return `true` if `l` is one or a composition of `identity`, `PropertyLens`, and `IndexLens`; `false` if `l` is
one or a composition of `DynamicIndexLens`; and undefined otherwise.
"""
is_static_optic(::Type{<:Union{typeof(identity),PropertyLens,IndexLens}}) = true
function is_static_optic(::Type{ComposedOptic{LO,LI}}) where {LO,LI}
Expand Down

0 comments on commit b9567dc

Please sign in to comment.