Skip to content

Commit

Permalink
Fix broken crate links in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jf2048 committed Nov 14, 2021
1 parent b40e329 commit 6ef52b5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gdk4/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl AsRef<Event> for Event {
}

// rustdoc-stripper-ignore-next
/// A common trait implemented by the various [`gdk::Event`] types.
/// A common trait implemented by the various [`gdk::Event`](crate::Event) types.
///
/// # Safety
///
Expand Down
2 changes: 1 addition & 1 deletion gsk4/src/render_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl RenderNode {
}

// rustdoc-stripper-ignore-next
/// A common trait implemented by the various [`gsk::RenderNode`] types.
/// A common trait implemented by the various [`gsk::RenderNode`](crate::RenderNode) types.
///
/// # Safety
///
Expand Down
16 changes: 9 additions & 7 deletions gtk4/src/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl AsRef<Expression> for Expression {
}

// rustdoc-stripper-ignore-next
/// A common trait implemented by the various [`gtk::Expression`] types.
/// A common trait implemented by the various [`Expression`](crate::Expression) types.
///
/// # Safety
///
Expand Down Expand Up @@ -161,8 +161,9 @@ impl Expression {
}

// rustdoc-stripper-ignore-next
/// Create a [`gtk::PropertyExpression`] that looks up for `property_name`
/// with self as parameter. This is useful in long chains of [`gtk::Expression`]s.
/// Create a [`PropertyExpression`](crate::PropertyExpression) that looks up for
/// `property_name` with self as parameter. This is useful in long chains of
/// [`Expression`](crate::Expression)s.
pub fn chain_property<T: IsA<glib::Object>>(
&self,
property_name: &str,
Expand All @@ -171,8 +172,8 @@ impl Expression {
}

// rustdoc-stripper-ignore-next
/// Create a [`gtk::ClosureExpression`] with self as a parameter. This is useful in long
/// chains of [`gtk::Expression`]s.
/// Create a [`ClosureExpression`](crate::ClosureExpression) with self as the second parameter.
/// This is useful in long chains of [`Expression`](crate::Expression)s.
pub fn chain_closure<F, R>(&self, f: F) -> crate::ClosureExpression
where
F: Fn(&[glib::Value]) -> R + 'static,
Expand Down Expand Up @@ -250,12 +251,13 @@ impl glib::value::ToValueOptional for Expression {
}

// rustdoc-stripper-ignore-next
/// Trait containing convenience methods in creating [`gtk::PropertyExpression`] that
/// Trait containing convenience methods in creating
/// [`PropertyExpression`](crate::PropertyExpression) that
/// looks up a property of a [`glib::Object`].
///
/// # Example
///
/// `label_expression` is a [`gtk::Expression`] that looks up at Button's `label`
/// `label_expression` is an [`Expression`](crate::Expression) that looks up at Button's `label`
/// property.
///
/// ```no_run
Expand Down

0 comments on commit 6ef52b5

Please sign in to comment.