Skip to content

Commit 9de8ee7

Browse files
committed
docs: Fix broken links
1 parent 61b49c4 commit 9de8ee7

File tree

10 files changed

+26
-26
lines changed

10 files changed

+26
-26
lines changed

gdk-pixbuf/src/subclass/pixbuf_animation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Take a look at the license at the top of the repository in the LICENSE file.
22

33
// rustdoc-stripper-ignore-next
4-
//! Traits intended for subclassing [`PixbufAnimation`](crate::PixbufAnimation).
4+
//! Traits intended for subclassing [`PixbufAnimation`].
55
66
use std::{
77
mem::MaybeUninit,

gdk-pixbuf/src/subclass/pixbuf_animation_iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Take a look at the license at the top of the repository in the LICENSE file.
22

33
// rustdoc-stripper-ignore-next
4-
//! Traits intended for subclassing [`PixbufAnimationIter`](crate::PixbufAnimationIter).
4+
//! Traits intended for subclassing [`PixbufAnimationIter`].
55
66
use std::{
77
sync::OnceLock,

gdk-pixbuf/src/subclass/pixbuf_loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Take a look at the license at the top of the repository in the LICENSE file.
22

33
// rustdoc-stripper-ignore-next
4-
//! Traits intended for subclassing [`PixbufLoader`](crate::PixbufLoader).
4+
//! Traits intended for subclassing [`PixbufLoader`].
55
66
use glib::{prelude::*, subclass::prelude::*, translate::*};
77

glib/src/collections/ptr_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const MIN_SIZE: usize = 16;
1111
// rustdoc-stripper-ignore-next
1212
/// Slice of elements of type `T` allocated by the GLib allocator.
1313
///
14-
/// The underlying memory is always `NULL`-terminated. [`Slice<T>`]
14+
/// The underlying memory is always `NULL`-terminated. [`Slice<T>`](crate::collections::slice::Slice)
1515
/// can be used for a non-`NULL`-terminated slice.
1616
///
1717
/// This can be used like a `&[T]`, `&mut [T]` and `Vec<T>`.

glib/src/gstring.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl GStr {
134134
///
135135
/// # Safety
136136
///
137-
/// See [`CStr::from_ptr`](CStr::from_ptr#safety).
137+
/// See [`CStr::from_ptr`](std::ffi::CStr#safety).
138138
#[inline]
139139
pub unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a Self {
140140
let cstr = CStr::from_ptr(ptr);
@@ -177,7 +177,7 @@ impl GStr {
177177
// rustdoc-stripper-ignore-next
178178
/// Converts this GLib string to a byte slice containing the trailing 0 byte.
179179
///
180-
/// This function is the equivalent of [`GStr::to_bytes`] except that it will retain the
180+
/// This function is the equivalent of [`GStr::as_bytes`] except that it will retain the
181181
/// trailing nul terminator instead of chopping it off.
182182
#[inline]
183183
pub const fn as_bytes_with_nul(&self) -> &[u8] {
@@ -669,9 +669,9 @@ impl<'a> ToGlibPtr<'a, *mut c_char> for GStr {
669669
}
670670

671671
// rustdoc-stripper-ignore-next
672-
/// `NULL`-terminated UTF-8 string as stored in [`StrV`].
672+
/// `NULL`-terminated UTF-8 string as stored in [`StrV`](crate::StrV).
673673
///
674-
/// Unlike [`&GStr`] this does not have its length stored.
674+
/// Unlike [`&GStr`](crate::GStr) this does not have its length stored.
675675
#[repr(transparent)]
676676
pub struct GStringPtr(ptr::NonNull<c_char>);
677677

@@ -685,7 +685,7 @@ impl GlibPtrDefault for GStringPtr {
685685

686686
impl GStringPtr {
687687
// rustdoc-stripper-ignore-next
688-
/// Returns the corresponding [`&GStr`].
688+
/// Returns the corresponding [`&GStr`](crate::GStr).
689689
#[inline]
690690
pub fn to_gstr(&self) -> &GStr {
691691
unsafe { GStr::from_ptr(self.0.as_ptr()) }
@@ -699,7 +699,7 @@ impl GStringPtr {
699699
}
700700

701701
// rustdoc-stripper-ignore-next
702-
/// This is just an alias for [`as_str`].
702+
/// This is just an alias for [`as_str`](GStringPtr::as_str).
703703
#[inline]
704704
#[deprecated = "Use as_str instead"]
705705
pub fn to_str(&self) -> &str {
@@ -1029,7 +1029,7 @@ impl GString {
10291029
/// [`Arguments`](std::fmt::Arguments) instance can be created with the
10301030
/// [`format_args!`](std::format_args) macro.
10311031
///
1032-
/// Please note that using [`gformat!`] might be preferable.
1032+
/// Please note that using [`gformat!`](crate::gformat) might be preferable.
10331033
pub fn format(args: fmt::Arguments) -> Self {
10341034
if let Some(s) = args.as_str() {
10351035
return Self::from(s);

glib/src/gstring_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl GStringBuilder {
146146
}
147147

148148
// rustdoc-stripper-ignore-next
149-
/// Finalizes the builder, converting it to a [`GString`].
149+
/// Finalizes the builder, converting it to a [`GString`](crate::GString).
150150
#[must_use = "String returned from the builder should probably be used"]
151151
#[inline]
152152
pub fn into_string(self) -> crate::GString {

glib/src/log.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ macro_rules! g_log {
544544
///
545545
/// [g_log]: https://docs.gtk.org/glib/func.log.html
546546
///
547-
/// It is the same as calling the [`g_log!`] macro with [`LogLevel::Error`].
547+
/// It is the same as calling the [`g_log!`](crate::g_log!) macro with [`LogLevel::Error`].
548548
///
549549
/// Example:
550550
///
@@ -581,7 +581,7 @@ macro_rules! g_error {
581581
///
582582
/// [g_log]: https://docs.gtk.org/glib/func.log.html
583583
///
584-
/// It is the same as calling the [`g_log!`] macro with [`LogLevel::Critical`].
584+
/// It is the same as calling the [`g_log!`](crate::g_log!) macro with [`LogLevel::Critical`].
585585
///
586586
/// Example:
587587
///
@@ -618,7 +618,7 @@ macro_rules! g_critical {
618618
///
619619
/// [g_log]: https://docs.gtk.org/glib/func.log.html
620620
///
621-
/// It is the same as calling the [`g_log!`] macro with [`LogLevel::Warning`].
621+
/// It is the same as calling the [`g_log!`](crate::g_log!) macro with [`LogLevel::Warning`].
622622
///
623623
/// Example:
624624
///
@@ -655,7 +655,7 @@ macro_rules! g_warning {
655655
///
656656
/// [g_log]: https://docs.gtk.org/glib/func.log.html
657657
///
658-
/// It is the same as calling the [`g_log!`] macro with [`LogLevel::Message`].
658+
/// It is the same as calling the [`g_log!`](crate::g_log!) macro with [`LogLevel::Message`].
659659
///
660660
/// Example:
661661
///
@@ -692,7 +692,7 @@ macro_rules! g_message {
692692
///
693693
/// [g_log]: https://docs.gtk.org/glib/func.log.html
694694
///
695-
/// It is the same as calling the [`g_log!`] macro with [`LogLevel::Info`].
695+
/// It is the same as calling the [`g_log!`](crate::g_log!) macro with [`LogLevel::Info`].
696696
///
697697
/// Example:
698698
///
@@ -729,7 +729,7 @@ macro_rules! g_info {
729729
///
730730
/// [g_log]: https://docs.gtk.org/glib/func.log.html
731731
///
732-
/// It is the same as calling the [`g_log!`] macro with [`LogLevel::Debug`].
732+
/// It is the same as calling the [`g_log!`](crate::g_log!) macro with [`LogLevel::Debug`].
733733
///
734734
/// Example:
735735
///

glib/src/object.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,7 +1930,7 @@ pub trait ObjectExt: ObjectType {
19301930
/// in C. This can be achieved with a closure that watches an object: see the documentation
19311931
/// of the [`closure!`](crate::closure!) macro for more details.
19321932
///
1933-
/// Same as [`Self::connect`] but takes a [`Closure`](crate::Closure) instead of a `Fn`.
1933+
/// Same as [`Self::connect`] but takes a [`Closure`] instead of a `Fn`.
19341934
#[doc(alias = "g_signal_connect_closure")]
19351935
#[doc(alias = "g_signal_connect_object")]
19361936
fn connect_closure(
@@ -1949,7 +1949,7 @@ pub trait ObjectExt: ObjectType {
19491949
/// This panics if the signal does not exist.
19501950
///
19511951
/// Same as [`Self::connect_closure`] but takes a
1952-
/// [`SignalId`](crate::subclass::signal::SignalId) instead of a signal name.
1952+
/// [`SignalId`] instead of a signal name.
19531953
#[doc(alias = "g_signal_connect_closure_by_id")]
19541954
fn connect_closure_id(
19551955
&self,

glib/src/param_spec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ impl ParamSpecOverride {
18891889
}
18901890

18911891
// rustdoc-stripper-ignore-next
1892-
/// Similar to [`ParamSpecOverride::new`] but specific for an interface.
1892+
/// Create a [`ParamSpecOverride`] to override an interface property.
18931893
///
18941894
/// # Examples
18951895
///
@@ -1914,7 +1914,7 @@ impl ParamSpecOverride {
19141914
}
19151915

19161916
// rustdoc-stripper-ignore-next
1917-
/// Similar to [`ParamSpecOverride::new`] but specific for a class.
1917+
/// Create a [`ParamSpecOverride`] to override a class property.
19181918
///
19191919
/// # Examples
19201920
///

glib/src/subclass/object.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ unsafe extern "C" fn dispose<T: ObjectImpl>(obj: *mut gobject_ffi::GObject) {
162162
}
163163

164164
// rustdoc-stripper-ignore-next
165-
/// Trait containing only the property related functions of `ObjectImpl`.
166-
/// Implemented by the `Props` macro.
165+
/// Trait containing only the property related functions of [`ObjectImpl`].
166+
/// Implemented by the [`Properties`](crate::Properties) macro.
167167
/// When implementing `ObjectImpl` you may want to delegate the function calls to this trait.
168168
pub trait DerivedObjectProperties: ObjectSubclass {
169169
// rustdoc-stripper-ignore-next
@@ -173,14 +173,14 @@ pub trait DerivedObjectProperties: ObjectSubclass {
173173
}
174174

175175
// rustdoc-stripper-ignore-next
176-
/// Similar to [`ObjectImpl`](trait.ObjectImpl.html) but auto-generated by the [`Properties`] macro
176+
/// Similar to [`ObjectImpl`](trait.ObjectImpl.html) but auto-generated by the [`Properties`](crate::Properties) macro
177177
/// to allow handling more complex use-cases.
178178
fn derived_set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec) {
179179
unimplemented!()
180180
}
181181

182182
// rustdoc-stripper-ignore-next
183-
/// Similar to [`ObjectImpl`](trait.ObjectImpl.html) but auto-generated by the [`Properties`] macro
183+
/// Similar to [`ObjectImpl`](trait.ObjectImpl.html) but auto-generated by the [`Properties`](crate::Properties) macro
184184
/// to allow handling more complex use-cases.
185185
fn derived_property(&self, _id: usize, _pspec: &ParamSpec) -> Value {
186186
unimplemented!()

0 commit comments

Comments
 (0)