Skip to content

Commit

Permalink
Fix broken RustGlue.roc interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
smores56 committed Jan 10, 2025
1 parent eb1b5ff commit 9dccec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/glue/src/RustGlue.roc
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ generate_non_nullable_unwrapped = \buf, types, name, tag_name, payload, discrimi
pub struct ${escaped_name}(roc_std::RocBox<${name}_${tag_name}>);
impl ${escaped_name} {
pub fn ${tag_name)(${constructor_arguments}) -> Self {
pub fn ${tag_name}(${constructor_arguments}) -> Self {
let payload = ${name}_${tag_name} { ${payload_field_names} };
Self(roc_std::RocBox::new(payload))
Expand Down Expand Up @@ -2218,7 +2218,7 @@ type_name = \types, id ->
RocList(elem) ->
elem_name = type_name(types, elem)
"roc_std::RocList<{delem_name}>"
"roc_std::RocList<${elem_name}>"
RocBox(elem) ->
elem_name = type_name(types, elem)
Expand Down

0 comments on commit 9dccec8

Please sign in to comment.