[ doc ] bring description of mkChange back in sync

This commit is contained in:
Justus Matthiesen 2023-11-02 14:32:18 +00:00 committed by Justus Matthiesen
parent bc386dab4e
commit a84ba3b1ef

View File

@ -207,10 +207,8 @@ mutual
else Nothing
_ => Nothing
-- Calculate the size change for the given argument.
-- i.e., return the size relationship of the given argument with an entry
-- in 'pats'; the position in 'pats' and the size change.
-- Nothing if there is no relation with any of them.
-- Calculate the size change for the given argument. i.e., return the
-- relative size of the given argument to each entry in 'pats'.
mkChange : Defs -> Name ->
(pats : List (Term vars)) ->
(arg : Term vars) ->
@ -221,6 +219,7 @@ mutual
-- Given a name of a case function, and a list of the arguments being
-- passed to it, update the pattern list so that it's referring to the LHS
-- of the case block function and return the corresponding RHS.
-- This way, we can build case blocks directly into the size change graph
-- rather than treating the definitions separately.
getCasePats : {auto c : Ref Ctxt Defs} ->