Skip to content

Commit

Permalink
Merge branch 'jf/enum-renamings' of https://github.com/noir-lang/noir
Browse files Browse the repository at this point in the history
…into jf/enum-renamings
  • Loading branch information
jfecher committed Jan 21, 2025
2 parents c861e03 + 6140589 commit 30bade2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ pub fn collect_enum(
file_id,
);

// Create the corresponding module for the struct namespace
// Create the corresponding module for the enum namespace
let location = Location::new(name.span(), file_id);
let id = match push_child_module(
interner,
Expand Down Expand Up @@ -1138,7 +1138,7 @@ pub fn collect_enum(
}
};

interner.set_doc_comments(ReferenceId::Struct(id), doc_comments);
interner.set_doc_comments(ReferenceId::Enum(id), doc_comments);

for (index, variant) in unresolved.enum_def.variants.iter().enumerate() {
if !variant.doc_comments.is_empty() {
Expand Down

0 comments on commit 30bade2

Please sign in to comment.