Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
Co-authored-by: Emil Gardström <[email protected]>
  • Loading branch information
burrbull and Emilgardis authored Oct 19, 2024
1 parent a3aa726 commit 992a650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generate/peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ fn expand_register(
let mut accessors = Vec::with_capacity((array_info.dim + 1) as _);
let first_name = svd::array::names(info, array_info).next().unwrap();
let note = (array_info.indexes().next().unwrap() != "0").then(||
format!("<div class=\"warning\">`n` is number of {0} in array. `n == 0` corresponds to `{first_name}` {0}.</div>", "register")
format!("<div class=\"warning\">`n` is the index of {0} in the array. `n == 0` corresponds to `{first_name}` {0}.</div>", "register")
);
accessors.push(
Accessor::Array(ArrayAccessor {
Expand Down

0 comments on commit 992a650

Please sign in to comment.