minor improvements

This commit is contained in:
Anton-4 2024-04-08 19:40:06 +02:00
parent 612fa4c75a
commit e85cbdce75
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
2 changed files with 18 additions and 13 deletions

View file

@ -210,7 +210,7 @@ pub(crate) enum ExtensionKind {
}
/// Ok a -> Ok a
/// A when is branch that matches Ok a and returns Ok a
/// A `when ... is` branch that matches `Ok a` and returns `Ok a`
pub(crate) fn ok_to_ok_branch(
pattern_var: Variable,
result_var: Variable,
@ -238,8 +238,9 @@ pub(crate) fn ok_to_ok_branch(
redundant: RedundantMark::known_non_redundant(),
}
}
/// `[]`
/// Creates an empty list of the type provided
/// Creates an empty list of the type provided.
pub(crate) fn empty_list(var: Variable) -> Expr {
Expr::List {
elem_var: var,