Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/block2/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ use objc2::encode::{EncodeArguments, EncodeReturn, Encoding};
/// still serve as a good way to obtain what to fill in the encoding string
/// when implementing [`crate::ManualBlockEncoding`].
///
/// See
/// [`crate::ManualBlockEncoding`](crate::ManualBlockEncoding#encoding-string-generation)
/// for an overview of the encoding string construction.
///
/// # Example
///
/// ```ignore
Expand Down
2 changes: 1 addition & 1 deletion crates/block2/src/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<F: ?Sized> fmt::Debug for GlobalBlock<F> {
/// assert_eq!(ADDER_BLOCK.call((5, 7)), 12);
/// ```
///
/// The following does not compile because [`Box`] is not [`EncodeReturn`]:
/// The following does not compile because [`Box`] is not [`EncodeArgument`]:
///
/// ```compile_fail,E0277
/// use block2::global_block;
Expand Down
2 changes: 1 addition & 1 deletion crates/block2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
//! }
//! ```
//!
//! This can similarly be done for Objcective-C methods declared with
//! This can similarly be done for Objective-C methods declared with
//! [`objc2::extern_methods!`] (though most of the time, the [framework
//! crates][framework-crates] will take care of that for you).
//!
Expand Down
2 changes: 1 addition & 1 deletion crates/block2/src/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl<'f, A, R, Closure> StackBlock<'f, A, R, Closure> {
} else {
BlockFlags::EMPTY
};
// See discussion in `new` above with regards to the safety of the
// See discussion in `maybe_encoded` above with regards to the safety of the
// pointer to the descriptor.
let descriptor = match (mem::needs_drop::<Self>(), E::IS_NONE) {
(true, true) => {
Expand Down