Skip to content

Commit

Permalink
Fix typo: spelling of transferred
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Feb 28, 2024
1 parent f2f01dd commit 9511576
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bindings/c/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,6 @@ pub struct tree_update_factory_userdata(pub *mut c_void);

unsafe impl Send for tree_update_factory_userdata {}

/// This function can't return a null pointer. Ownership of the returned value will be transfered to the caller.
/// This function can't return a null pointer. Ownership of the returned value will be transferred to the caller.
pub type tree_update_factory =
Option<extern "C" fn(tree_update_factory_userdata) -> *mut tree_update>;
6 changes: 3 additions & 3 deletions bindings/c/src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl macos_adapter {
BoxCastPtr::to_mut_ptr(events)
}

/// Returns a pointer to an `NSArray`. Ownership of the pointer is not transfered.
/// Returns a pointer to an `NSArray`. Ownership of the pointer is not transferred.
#[no_mangle]
pub extern "C" fn accesskit_macos_adapter_view_children(
adapter: *const macos_adapter,
Expand All @@ -104,14 +104,14 @@ impl macos_adapter {
adapter.view_children() as *mut _
}

/// Returns a pointer to an `NSObject`. Ownership of the pointer is not transfered.
/// Returns a pointer to an `NSObject`. Ownership of the pointer is not transferred.
#[no_mangle]
pub extern "C" fn accesskit_macos_adapter_focus(adapter: *const macos_adapter) -> *mut c_void {
let adapter = ref_from_ptr(adapter);
adapter.focus() as *mut _
}

/// Returns a pointer to an `NSObject`. Ownership of the pointer is not transfered.
/// Returns a pointer to an `NSObject`. Ownership of the pointer is not transferred.
#[no_mangle]
pub extern "C" fn accesskit_macos_adapter_hit_test(
adapter: *const macos_adapter,
Expand Down

0 comments on commit 9511576

Please sign in to comment.