Skip to content

Commit 712eb8a

Browse files
committed
Escape brackets on descriptions for bit fields too
1 parent 15064a9 commit 712eb8a

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
@@ -249,7 +249,7 @@ pub fn fields(
249249
};
250250
if let Some(ref d) = f.description {
251251
description.push_str(" - ");
252-
description.push_str(&*util::respace(d));
252+
description.push_str(&*util::respace(&util::escape_brackets(d)));
253253
}
254254
Ok(F {
255255
_pc_w,

0 commit comments

Comments
 (0)