Skip to content

Commit

Permalink
Allow '@param' on enumerators.
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere committed Dec 19, 2023
1 parent 1c91683 commit 4838a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validators/comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn validate_common_doc_comments(commentable: &dyn Commentable, diagnostics:
}

fn only_operations_have_parameters(comment: &DocComment, entity: &dyn Commentable, diagnostics: &mut Diagnostics) {
if !matches!(entity.concrete_entity(), Entities::Operation(_)) {
if !matches!(entity.concrete_entity(), Entities::Operation(_) | Entities::Enumerator(_)) {
for param_tag in &comment.params {
report_only_operation_error(param_tag, param_tag.message.span(), entity, diagnostics);
}
Expand Down

0 comments on commit 4838a71

Please sign in to comment.