Skip to content

Commit ba9913f

Browse files
committed
fix typo
1 parent 0e1b6cc commit ba9913f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rust/src/repository.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl RepositoryManager {
114114
pub fn default_repository(&self) -> Ref<Repository> {
115115
let result = unsafe { BNRepositoryManagerGetDefaultRepository(self.as_raw()) };
116116
assert!(!result.is_null());
117-
// NOTE result is not onwed, we need to clone it
117+
// NOTE result is not owned, we need to clone it
118118
let default = unsafe { Repository::from_raw(ptr::NonNull::new(result).unwrap()) };
119119
default.to_owned()
120120
}
@@ -576,14 +576,14 @@ unsafe impl CoreArrayProviderInner for PluginPlatforms {
576576
}
577577
}
578578

579-
pub struct PluginDirectorys;
580-
impl CoreArrayProvider for PluginDirectorys {
579+
pub struct PluginDirectories;
580+
impl CoreArrayProvider for PluginDirectories {
581581
type Raw = *mut ffi::c_char;
582582
type Context = ();
583583
type Wrapped<'a> = &'a ffi::CStr;
584584
}
585585

586-
unsafe impl CoreArrayProviderInner for PluginDirectorys {
586+
unsafe impl CoreArrayProviderInner for PluginDirectories {
587587
unsafe fn free(raw: *mut Self::Raw, count: usize, _context: &Self::Context) {
588588
BNRepositoryFreePluginDirectoryList(raw, count)
589589
}

0 commit comments

Comments
 (0)