Skip to content

Commit

Permalink
Fix (more) broken intradoc links
Browse files Browse the repository at this point in the history
Good thing I just set up CI earlier for this 😅
  • Loading branch information
hecrj committed Sep 9, 2023
1 parent c692845 commit b42b24b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`].
Expand Down
2 changes: 1 addition & 1 deletion graphics/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`].
Expand Down
6 changes: 3 additions & 3 deletions graphics/src/primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b42b24b

Please sign in to comment.