Skip to content

Commit f6a8402

Browse files
committed
Escape brackets on enum variants.
1 parent 712eb8a commit f6a8402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate/register.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ pub fn fields(
390390
let mut vars = variants
391391
.iter()
392392
.map(|v| {
393-
let desc = v.description;
393+
let desc = util::escape_brackets(&v.description);
394394
let pc = &v.pc;
395395
quote! {
396396
#[doc = #desc]

0 commit comments

Comments
 (0)