Skip to content

Commit

Permalink
Generate docs for enum variants
Browse files Browse the repository at this point in the history
  • Loading branch information
morr0ne committed Aug 15, 2024
1 parent ee573bb commit 1a31e62
Show file tree
Hide file tree
Showing 2 changed files with 473 additions and 129 deletions.
2 changes: 1 addition & 1 deletion gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ fn write_enums(interface: &Interface) -> Vec<TokenStream> {
let mut match_variants = Vec::new();

for entry in &e.entries {
let docs = description_to_docs(entry.description.as_ref());
let docs = description_to_docs(entry.summary.as_ref());
let name = make_ident(entry.name.to_upper_camel_case());
let value = value_to_u32(&entry.value);

Expand Down
Loading

0 comments on commit 1a31e62

Please sign in to comment.