Skip to content

Commit 3919651

Browse files
committed
Add doc comment to register type alias
1 parent cfc8bc4 commit 3919651

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/generate/register.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,12 @@ pub fn render(
218218
});
219219
}
220220

221+
let alias_doc = format!(
222+
"{} register accessor: an alias for `Reg<{}::{}>`",
223+
name, name_sc, name_pc
224+
);
221225
out.extend(quote! {
226+
#[doc = #alias_doc]
222227
pub type #name_pc = crate::Reg<#name_sc::#name_pc>;
223228
});
224229

0 commit comments

Comments
 (0)