We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55a1651 commit 44dde42Copy full SHA for 44dde42
src/generate/register.rs
@@ -158,15 +158,15 @@ pub fn render(
158
pub struct #_name_pc;
159
});
160
161
- let doc = format!("`read()` method returns [{0}::R]({0}::R) reader structure", &name_sc);
162
if can_read {
+ let doc = format!("`read()` method returns [{0}::R]({0}::R) reader structure", &name_sc);
163
out.push(quote! {
164
#[doc = #doc]
165
impl crate::Readable for #name_pc {}
166
167
}
168
- let doc = format!("`write(|w| ..)` method takes [{0}::W]({0}::W) writer structure", &name_sc);
169
if can_write {
+ let doc = format!("`write(|w| ..)` method takes [{0}::W]({0}::W) writer structure", &name_sc);
170
171
172
impl crate::Writable for #name_pc {}
0 commit comments