Skip to content

Commit a6b6c2d

Browse files
committed
changelog, docs
1 parent 6ab70fb commit a6b6c2d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2828

2929
### Changed
3030

31+
- [breaking-change] support for "field arrays"
32+
3133
- [breaking-change] remove `Variant<U, ENUM_A>`, use `Option<ENUM_A>` instead
3234

3335
- split out register size type (`RawType`) from `ResetValue` trait

src/generate/register.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,13 @@ pub fn fields(
682682
});
683683
}
684684

685+
let mut cgdoc = String::new();
685686
let doc = if let Some((_, _, _, _, suffixes_str)) = &field_dim {
687+
cgdoc = format!(
688+
"Fields `{}` const generic writer - {}",
689+
util::replace_suffix(&f.name, suffixes_str),
690+
description
691+
);
686692
format!(
687693
"Fields `{}` writer - {}",
688694
util::replace_suffix(&f.name, suffixes_str),
@@ -705,7 +711,7 @@ pub fn fields(
705711
#proxy_items_fa
706712
}
707713

708-
#[doc = #doc]
714+
#[doc = #cgdoc]
709715
pub struct #name_pc_cgw<'a, const O: usize> {
710716
w: &'a mut W,
711717
}

0 commit comments

Comments
 (0)