Skip to content

Commit 8226514

Browse files
committed
Fix global_block macro documentation link
1 parent 9f2d43c commit 8226514

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

block2/src/global.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ const GLOBAL_DESCRIPTOR: ffi::Block_descriptor_header = ffi::Block_descriptor_he
1818
/// An Objective-C block that does not capture it's environment.
1919
///
2020
/// This is effectively just a glorified function pointer, and can created and
21-
/// stored in static memory using the [`global_block`][`global_block!`] macro.
21+
/// stored in static memory using the [`global_block!`] macro.
2222
///
2323
/// If [`ConcreteBlock`] is the [`Fn`]-block equivalent, this is likewise the
2424
/// [`fn`]-block equivalent.
2525
///
2626
/// [`ConcreteBlock`]: crate::ConcreteBlock
27+
/// [`global_block!`]: crate::global_block
2728
#[repr(C)]
2829
pub struct GlobalBlock<A, R = ()> {
2930
layout: ffi::Block_layout,
@@ -88,9 +89,9 @@ where
8889

8990
/// Construct a static [`GlobalBlock`].
9091
///
91-
/// The syntax is similar to a static closure. Note that the block cannot
92-
/// capture it's environment, and it's argument types and return type must be
93-
/// [`Encode`].
92+
/// The syntax is similar to a static closure (except that all types have to
93+
/// be specified). Note that the block cannot capture it's environment, and
94+
/// it's argument types and return type must be [`Encode`].
9495
///
9596
/// # Examples
9697
///

0 commit comments

Comments
 (0)