Skip to content

Commit

Permalink
Fix "its" spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jul 17, 2022
1 parent ff8991c commit a7225be
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions block2/src/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const GLOBAL_DESCRIPTOR: ffi::Block_descriptor_header = ffi::Block_descriptor_he
size: mem::size_of::<ffi::Block_layout>() 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.
Expand Down Expand Up @@ -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
///
Expand Down Expand Up @@ -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:
///
Expand Down
2 changes: 1 addition & 1 deletion objc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions objc2-foundation/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion objc2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion objc2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion objc2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion objc2/src/message/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion objc2/src/rc/autorelease.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// });
Expand Down

0 comments on commit a7225be

Please sign in to comment.