Skip to content

Commit f5d9483

Browse files
committed
runWithOwnership typo fix
1 parent 0ed95e7 commit f5d9483

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MultipeerHelper+Example/MultipeerHelper+Example/RealityViewController+Gestures.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension RealityViewController: UIGestureRecognizerDelegate {
3131
}
3232
if let hitEntity = self.arView.entity(at: touchInView) {
3333
// animate the Entity
34-
hitEntity.runWithOwnerhsip { (result) in
34+
hitEntity.runWithOwnership { (result) in
3535
switch result {
3636
case .success:
3737
let origTransform = Transform(scale: .one, rotation: .init(), translation: .zero)

Sources/MultipeerHelper/HasSynchronization+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public extension HasSynchronization {
1717
/// Execute the escaping completion if you are the entity owner, once you receive ownership
1818
/// or call result failure if ownership cannot be granted to the caller.
1919
/// - Parameter completion: completion of type Result, success once ownership granted, failure if not granted
20-
func runWithOwnerhsip(
20+
func runWithOwnership(
2121
completion: @escaping (Result<HasSynchronization, Error>) -> Void
2222
) {
2323
if self.isOwner {

0 commit comments

Comments
 (0)