Skip to content

Commit

Permalink
Update src/varname.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 authored Mar 11, 2024
1 parent 4ead3f1 commit fa052ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/varname.jl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ Currently _not_ supported are:
- Trailing ones: `x[2, 1]` does not subsume `x[2]` for a vector `x`
"""
function subsumes(u::VarName, v::VarName)
return getsym(u) == getsym(v) && subsumes(getoptic(optic), getoptic(v))
return getsym(u) == getsym(v) && subsumes(getoptic(u), getoptic(v))
end

# Idea behind `subsumes` for `Lens` is that we traverse the two lenses in parallel,
Expand Down

0 comments on commit fa052ea

Please sign in to comment.