Skip to content

Commit

Permalink
Update src/varname.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Tor Erlend Fjelde <tor.erlend95@gmail.com>
  • Loading branch information
sunxd3 and torfjelde authored Mar 11, 2024
1 parent 205f506 commit 4ead3f1
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(u.optic, v.optic)
return getsym(u) == getsym(v) && subsumes(getoptic(optic), getoptic(v))
end

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

0 comments on commit 4ead3f1

Please sign in to comment.