Skip to content

Commit

Permalink
Fix load_cart/rom fn names
Browse files Browse the repository at this point in the history
  • Loading branch information
LLeny committed Oct 2, 2024
1 parent 06812ab commit 2ec15f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl Lynx {
self.mikey.cpu_prefetch(reset_vec, &mut self.rom);
}

pub fn load_cart_from_vec(&mut self, data: &[u8]) -> Result<(), Error> {
pub fn load_cart_from_slice(&mut self, data: &[u8]) -> Result<(), Error> {
trace!("Load cart");
match Cartridge::from_vec(data) {
Err(e) => Err(e),
Expand All @@ -67,7 +67,7 @@ impl Lynx {
}
}

pub fn load_rom_from_vec(&mut self, data: &[u8]) -> Result<(), Error> {
pub fn load_rom_from_slice(&mut self, data: &[u8]) -> Result<(), Error> {
trace!("Load rom");
match Rom::from_vec(data) {
Err(e) => Err(e),
Expand Down

0 comments on commit 2ec15f8

Please sign in to comment.