From a7225bebe87ef48a139cff99b7e84e6b4a18ab9f Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Sun, 17 Jul 2022 02:00:45 +0200 Subject: [PATCH] Fix "its" spelling --- block2/src/global.rs | 8 ++++---- objc-sys/build.rs | 2 +- objc2-foundation/src/macros.rs | 4 ++-- objc2/CHANGELOG.md | 2 +- objc2/Cargo.toml | 2 +- objc2/src/lib.rs | 2 +- objc2/src/message/apple/mod.rs | 2 +- objc2/src/rc/autorelease.rs | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/block2/src/global.rs b/block2/src/global.rs index fee1ca686..ab4e176c6 100644 --- a/block2/src/global.rs +++ b/block2/src/global.rs @@ -16,7 +16,7 @@ const GLOBAL_DESCRIPTOR: ffi::Block_descriptor_header = ffi::Block_descriptor_he size: mem::size_of::() as c_ulong, }; -/// An Objective-C block that does not capture it's environment. +/// An Objective-C block that does not capture its environment. /// /// This is effectively just a glorified function pointer, and can created and /// stored in static memory using the [`global_block!`] macro. @@ -93,8 +93,8 @@ where /// Construct a static [`GlobalBlock`]. /// /// The syntax is similar to a static closure (except that all types have to -/// be specified). Note that the block cannot capture it's environment, and -/// it's argument types and return type must be [`Encode`]. +/// be specified). Note that the block cannot capture its environment, and +/// its argument types and return type must be [`Encode`]. /// /// # Examples /// @@ -139,7 +139,7 @@ where /// } /// ``` /// -/// There is also no way to get a block function that's generic over it's +/// There is also no way to get a block function that's generic over its /// arguments. One could imagine the following syntax would work, but it can't /// due to implementation limitations: /// diff --git a/objc-sys/build.rs b/objc-sys/build.rs index 9255d0664..ecc07a847 100644 --- a/objc-sys/build.rs +++ b/objc-sys/build.rs @@ -176,7 +176,7 @@ fn main() { (MacOS(_), _) => "macosx", (IOS(_), _) => "ios", (WatchOS(_), _) => "watchos", - // tvOS doesn't have it's own -fobjc-runtime string + // tvOS doesn't have its own -fobjc-runtime string (TvOS(_), _) => "ios", }; match runtime { diff --git a/objc2-foundation/src/macros.rs b/objc2-foundation/src/macros.rs index d27c94158..ed9e436b6 100644 --- a/objc2-foundation/src/macros.rs +++ b/objc2-foundation/src/macros.rs @@ -25,7 +25,7 @@ /// Finally, [`AsRef`], [`AsMut`], [`Borrow`] and [`BorrowMut`] are /// implemented to allow conversion to an arbitary superclasses in the /// inheritance chain (since an instance of a class can always be interpreted -/// as it's superclasses). +/// as its superclasses). /// /// [`Deref`]: core::ops::Deref /// [`DerefMut`]: core::ops::DerefMut @@ -237,7 +237,7 @@ macro_rules! __inner_extern_class { } // SAFETY: An instance can always be _used_ in exactly the same way as - // it's superclasses (though not necessarily _constructed_ in the same + // its superclasses (though not necessarily _constructed_ in the same // way, but `Deref` doesn't allow this). // // Remember; while we (the Rust side) may intentionally be forgetting diff --git a/objc2/CHANGELOG.md b/objc2/CHANGELOG.md index 7547fdce2..28120016a 100644 --- a/objc2/CHANGELOG.md +++ b/objc2/CHANGELOG.md @@ -150,7 +150,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * **BREAKING**: `Class` no longer implements `Message` (but it can still be used as the receiver in `msg_send!`, so this is unlikely to break anything in practice). -* **BREAKING**: Sealed the `MethodImplementation` trait, and made it's `imp` +* **BREAKING**: Sealed the `MethodImplementation` trait, and made its `imp` method privat. * **BREAKING**: Updated `ffi` module to `objc-sys v0.2.0-beta.0`. * **BREAKING**: Updated `objc2-encode` (`Encoding`, `Encode`, `RefEncode` and diff --git a/objc2/Cargo.toml b/objc2/Cargo.toml index b16eb77f5..9bb22dfef 100644 --- a/objc2/Cargo.toml +++ b/objc2/Cargo.toml @@ -44,7 +44,7 @@ malloc = ["malloc_buf"] # Make the `sel!` macro look up the selector statically. # # The plan is to enable this by default, but right now we are uncertain of -# it's stability, and it might need significant changes before being fully +# its stability, and it might need significant changes before being fully # ready! # # Please test it, and report any issues you may find: diff --git a/objc2/src/lib.rs b/objc2/src/lib.rs index f963d26a5..a79bff758 100644 --- a/objc2/src/lib.rs +++ b/objc2/src/lib.rs @@ -2,7 +2,7 @@ //! //! Objective-C is[^note] the standard programming language on Apple platforms //! like macOS, iOS, iPadOS, tvOS and watchOS. It is an object-oriented -//! language centered around "sending messages" to it's instances - this can +//! language centered around "sending messages" to its instances - this can //! for the most part be viewed as a simple method call. //! //! Most of the core libraries and frameworks that are in use on Apple systems diff --git a/objc2/src/message/apple/mod.rs b/objc2/src/message/apple/mod.rs index 9deb1882f..cd74c1be7 100644 --- a/objc2/src/message/apple/mod.rs +++ b/objc2/src/message/apple/mod.rs @@ -17,7 +17,7 @@ mod arch; mod arch; /// On the above architectures we can statically find the correct method to -/// call from the return type, by looking at it's `Encode` implementation. +/// call from the return type, by looking at its `Encode` implementation. #[allow(clippy::missing_safety_doc)] unsafe trait MsgSendFn: Encode { const MSG_SEND: Imp; diff --git a/objc2/src/rc/autorelease.rs b/objc2/src/rc/autorelease.rs index 3d93ec149..8b836e3db 100644 --- a/objc2/src/rc/autorelease.rs +++ b/objc2/src/rc/autorelease.rs @@ -294,7 +294,7 @@ impl !AutoreleaseSafe for AutoreleasePool {} /// let obj = needs_lifetime_from_pool(outer_pool); /// obj /// }); -/// // `obj` could wrongly be used here because it's lifetime was +/// // `obj` could wrongly be used here because its lifetime was /// // assigned to the outer pool, even though it was released by the /// // inner pool already. /// });