Skip to content

Commit

Permalink
pci: Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Akira Moroo <[email protected]>
  • Loading branch information
retrage committed Mar 21, 2023
1 parent 12efed7 commit 7ff9dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl PciDevice {
panic!("I/O BARs are not supported on this platform");
}
} else {
// bits 2-1 are the type 0 is 32-but, 2 is 64 bit
// bits 2-1 are the type 0 is 32-bit, 2 is 64 bit
match bar >> 1 & 3 {
0 => {
self.bars[current_bar].bar_type = PciBarType::MemorySpace32;
Expand Down

0 comments on commit 7ff9dea

Please sign in to comment.