Fix (more) broken intradoc links

Good thing I just set up CI earlier for this 😅
This commit is contained in:
Héctor Ramón Jiménez 2023-09-10 00:55:46 +02:00
parent c692845744
commit b42b24b79a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 5 additions and 5 deletions

View file

@ -215,7 +215,7 @@ pub trait Paragraph: Default {
/// Returns the [`LineHeight`] of the [`Paragraph`].
fn line_height(&self) -> LineHeight;
/// Returns the [`Font`] of the [`Paragraph`].
/// Returns the [`Self::Font`] of the [`Paragraph`].
fn font(&self) -> Self::Font;
/// Returns the [`Shaping`] strategy of the [`Paragraph`].

View file

@ -16,7 +16,7 @@ pub trait Backend {
/// A graphics backend that supports text rendering.
pub trait Text {
/// Loads a [`Font`] from its bytes.
/// Loads a font from its bytes.
fn load_font(&mut self, font: Cow<'static, [u8]>);
/// Returns the [`cosmic_text::FontSystem`] of the [`Backend`].

View file

@ -34,11 +34,11 @@ pub enum Primitive<T> {
},
/// A paragraph primitive
Paragraph {
/// The [`Paragraph`].
/// The [`paragraph::Weak`] reference.
paragraph: paragraph::Weak,
/// The position of the [`Paragraph`].
/// The position of the paragraph.
position: Point,
/// The color of the [`Paragraph`].
/// The color of the paragraph.
color: Color,
},
/// A quad primitive