Skip to content

Commit 714143f

Browse files
author
Jorge Aparicio
committed
improve the documentation of W's method in the no-enumeratedValues case
1 parent ce3ed97 commit 714143f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,8 @@ pub fn gen_register(r: &Register,
888888
}
889889
});
890890

891-
let doc = format!("Returns the value of the field {}",
892-
field.name);
891+
let doc = field_doc(field.bit_range,
892+
field.description.as_ref());
893893
r_impl_items.push(quote! {
894894
#[doc = #doc]
895895
pub fn #field_name(&self) -> #name {

0 commit comments

Comments
 (0)