Fix comment definitions for List.keepIf and List.append

This commit is contained in:
Chad Stearns 2020-09-05 19:01:26 -04:00
parent 13a644b03c
commit 90a3771584
2 changed files with 3 additions and 3 deletions

View file

@ -783,9 +783,9 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
)
});
// map : Attr * (List a)
// keepIf : Attr * (List a)
// , Attr Shared (a -> Attr * Bool)
// -> Attr * (List b)
// -> Attr * (List a)
add_type(Symbol::LIST_KEEP_IF, {
let_tvars! { a, star1, star2, star3 };

View file

@ -495,7 +495,7 @@ pub fn list_get_unsafe<'a, 'ctx, 'env>(
}
}
/// List.push List elem, elem -> List elem
/// List.append : List elem, elem -> List elem
pub fn list_append<'a, 'ctx, 'env>(
env: &Env<'a, 'ctx, 'env>,
original_wrapper: StructValue<'ctx>,