Fix a few typos

Former-commit-id: f7bb3b0c639eff30f389a54a828de1246a27aaf0
This commit is contained in:
sapir 2020-04-12 22:36:38 +03:00 committed by MishMish
parent d218325b12
commit d0f6ad0112
2 changed files with 3 additions and 3 deletions

View file

@ -201,7 +201,7 @@ pub mod bindings {
} }
} }
fn inetrnal_open_saved_state( fn internal_open_saved_state(
env: &JNIEnv, env: &JNIEnv,
state: jbyteArray, state: jbyteArray,
frame_buffer: jintArray, frame_buffer: jintArray,
@ -243,7 +243,7 @@ pub mod bindings {
state: jbyteArray, state: jbyteArray,
frame_buffer: jintArray, frame_buffer: jintArray,
) -> jlong { ) -> 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, Ok(ctx) => Box::into_raw(Box::new(Mutex::new(ctx))) as jlong,
Err(msg) => { Err(msg) => {
env.throw_new(NATIVE_EXCEPTION_CLASS, msg).unwrap(); env.throw_new(NATIVE_EXCEPTION_CLASS, msg).unwrap();

View file

@ -50,7 +50,7 @@ impl Core {
pub fn arm_undefined(&mut self, _: &mut SysBus, insn: &ArmInstruction) -> CpuAction { pub fn arm_undefined(&mut self, _: &mut SysBus, insn: &ArmInstruction) -> CpuAction {
panic!( panic!(
"executing undefind arm instruction {:08x} at @{:08x}", "executing undefined arm instruction {:08x} at @{:08x}",
insn.raw, insn.pc insn.raw, insn.pc
) )
} }