Skip to content

Commit 52c3e8b

Browse files
committed
fix typo
1 parent 05f140e commit 52c3e8b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rust/src/language_representation.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ unsafe extern "C" fn function_type_free_lines_ffi(
628628
drop(lines);
629629
}
630630

631-
pub trait CustomLineFormater {
631+
pub trait CustomLineFormatter {
632632
fn format_lines(
633633
&self,
634634
lines: &[DisassemblyTextLine],
@@ -650,7 +650,7 @@ impl CoreLineFormatter {
650650
}
651651
}
652652

653-
pub fn register_line_formatter<C: CustomLineFormater, B: BnStrCompatible>(
653+
pub fn register_line_formatter<C: CustomLineFormatter, B: BnStrCompatible>(
654654
name: B,
655655
custom: C,
656656
) -> CoreLineFormatter {
@@ -667,7 +667,7 @@ pub fn register_line_formatter<C: CustomLineFormater, B: BnStrCompatible>(
667667
unsafe { CoreLineFormatter::from_raw(ptr::NonNull::new(handle).unwrap()) }
668668
}
669669

670-
unsafe extern "C" fn line_formatter_format_lines_ffi<C: CustomLineFormater>(
670+
unsafe extern "C" fn line_formatter_format_lines_ffi<C: CustomLineFormatter>(
671671
ctxt: *mut ffi::c_void,
672672
in_lines: *mut BNDisassemblyTextLine,
673673
in_count: usize,

rust/tests/language_representation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use binaryninja::language_representation::{
1313
register_line_formatter, CoreLanguageRepresentationFunction,
1414
CoreLanguageRepresentationFunctionType, CoreLineFormatter,
1515
CustomLanguageRepresentationFunction, CustomLanguageRepresentationFunctionType,
16-
CustomLineFormater, HighLevelILTokenEmitter, LineFormatterSettings, OperatorPrecedence,
16+
CustomLineFormatter, HighLevelILTokenEmitter, LineFormatterSettings, OperatorPrecedence,
1717
};
1818
use binaryninja::platform::Platform;
1919
use binaryninja::rc::Ref;
@@ -293,7 +293,7 @@ impl TypeParser for MyTypeParser {
293293
}
294294
}
295295

296-
impl CustomLineFormater for MyLineFormatter {
296+
impl CustomLineFormatter for MyLineFormatter {
297297
fn format_lines(
298298
&self,
299299
lines: &[DisassemblyTextLine],

0 commit comments

Comments
 (0)