Skip to content

Commit

Permalink
Merge pull request #144 from lqd/coquille
Browse files Browse the repository at this point in the history
fix substitution typo
  • Loading branch information
nikomatsakis authored Oct 12, 2023
2 parents e8f44d8 + e175c41 commit 557f5f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/formality-prove/src/prove/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl Env {
})
}

fn fresh_substituion<V>(
fn fresh_substitution<V>(
&mut self,
kinds: &[ParameterKind],
v: impl Fn(ParameterKind, VarIndex) -> V,
Expand All @@ -142,7 +142,7 @@ impl Env {
T: Fold,
{
let mut env = self.clone();
let subst = env.fresh_substituion(b.kinds(), |kind, var_index| UniversalVar {
let subst = env.fresh_substitution(b.kinds(), |kind, var_index| UniversalVar {
kind,
var_index,
});
Expand All @@ -153,7 +153,7 @@ impl Env {
where
T: Fold,
{
let subst = self.fresh_substituion(b.kinds(), |kind, var_index| UniversalVar {
let subst = self.fresh_substitution(b.kinds(), |kind, var_index| UniversalVar {
kind,
var_index,
});
Expand All @@ -165,7 +165,7 @@ impl Env {
T: Fold,
{
let mut env = self.clone();
let subst = env.fresh_substituion(b.kinds(), |kind, var_index| ExistentialVar {
let subst = env.fresh_substitution(b.kinds(), |kind, var_index| ExistentialVar {
kind,
var_index,
});
Expand Down

0 comments on commit 557f5f3

Please sign in to comment.