Skip to content

Commit

Permalink
rustdoc: Fix broken link to FontFace in components/gfx (#31745)
Browse files Browse the repository at this point in the history
* rustdoc: Fix fontface broken link error

* Correct link to `Font`

* Reduce the diff a bit

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
  • Loading branch information
oluwatobiss and mrobinson committed Mar 19, 2024
1 parent 36d9ab8 commit d3b03a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/gfx/platform/windows/font_template.rs
Expand Up @@ -79,7 +79,7 @@ impl FontTemplateData {
self.font_data.read().unwrap().as_ref().cloned()
}

/// Get a [`FontFace`] for this font if it is a local font or return `None` if it's a
/// Get a [`Font`] for this font if it is a local font or return `None` if it's a
/// web font.
pub fn get_font(&self) -> Option<Font> {
let font_descriptor = match &self.identifier {
Expand Down

0 comments on commit d3b03a2

Please sign in to comment.