mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
minor improvements
This commit is contained in:
parent
612fa4c75a
commit
e85cbdce75
2 changed files with 18 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue