Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jun 27, 2024
1 parent 3601beb commit 1900367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpm-metapac-gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl Gen {
writeln!(&mut extra, "pub mod resources {{").unwrap();
let mut resources = core.resources.clone();
resources.sort_by_key(|r| r.index);
for res in &core.resources {
for res in &resources {
writeln!(
&mut extra,
" pub const {}: usize = {};",
Expand All @@ -165,7 +165,7 @@ impl Gen {

let mut clocks = core.clocks.clone();
clocks.sort_by_key(|r| r.index);
for clk in &core.clocks {
for clk in &clocks {
writeln!(
&mut extra,
" pub const {}: usize = {};",
Expand Down

0 comments on commit 1900367

Please sign in to comment.