Skip to content

Commit b6139c3

Browse files
authored
let readable field fetch doc from svd description
1 parent ef56dd1 commit b6139c3

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
@@ -805,7 +805,7 @@ pub fn fields(
805805
span,
806806
);
807807

808-
let doc = format!("Checks if the value of the field is `{pc}`");
808+
let doc = util::escape_special_chars(&util::respace(&v.doc));
809809
enum_items.extend(quote! {
810810
#[doc = #doc]
811811
#inline

0 commit comments

Comments
 (0)