From d0f6ad01126c167a9f8667b43aedd7353cd72058 Mon Sep 17 00:00:00 2001 From: sapir Date: Sun, 12 Apr 2020 22:36:38 +0300 Subject: [PATCH] Fix a few typos Former-commit-id: f7bb3b0c639eff30f389a54a828de1246a27aaf0 --- bindings/rustboyadvance-jni/src/lib.rs | 4 ++-- rustboyadvance-core/src/core/arm7tdmi/arm/exec.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/rustboyadvance-jni/src/lib.rs b/bindings/rustboyadvance-jni/src/lib.rs index 5363f9c..56fb1f8 100644 --- a/bindings/rustboyadvance-jni/src/lib.rs +++ b/bindings/rustboyadvance-jni/src/lib.rs @@ -201,7 +201,7 @@ pub mod bindings { } } - fn inetrnal_open_saved_state( + fn internal_open_saved_state( env: &JNIEnv, state: jbyteArray, frame_buffer: jintArray, @@ -243,7 +243,7 @@ pub mod bindings { state: jbyteArray, frame_buffer: jintArray, ) -> jlong { - match inetrnal_open_saved_state(&env, state, frame_buffer) { + match internal_open_saved_state(&env, state, frame_buffer) { Ok(ctx) => Box::into_raw(Box::new(Mutex::new(ctx))) as jlong, Err(msg) => { env.throw_new(NATIVE_EXCEPTION_CLASS, msg).unwrap(); diff --git a/rustboyadvance-core/src/core/arm7tdmi/arm/exec.rs b/rustboyadvance-core/src/core/arm7tdmi/arm/exec.rs index 26c5cda..d36e285 100644 --- a/rustboyadvance-core/src/core/arm7tdmi/arm/exec.rs +++ b/rustboyadvance-core/src/core/arm7tdmi/arm/exec.rs @@ -50,7 +50,7 @@ impl Core { pub fn arm_undefined(&mut self, _: &mut SysBus, insn: &ArmInstruction) -> CpuAction { panic!( - "executing undefind arm instruction {:08x} at @{:08x}", + "executing undefined arm instruction {:08x} at @{:08x}", insn.raw, insn.pc ) }