Skip to content

Commit 5fa99aa

Browse files
authored
Merge pull request #734 from eZioPan/readable-field-doc
let readable field fetch doc from svd description
2 parents ef56dd1 + 3d5099b commit 5fa99aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
88
## [Unreleased]
99

1010
- Updated syn to version 2 (#732)
11+
- Let readable field fetch doc from svd description (#734)
1112

1213
## [v0.29.0] - 2023-06-05
1314

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)