rustdoc: Fix many rustdoc errors (#31147)

This fixes many rustdoc errors that occur due to raw URLs in rustdoc
comments as well as unescaped Rust code that should be in backticks.
This commit is contained in:
Martin Robinson 2024-01-22 14:13:48 +01:00 committed by GitHub
parent d7de206dbd
commit 5c1723c983
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
185 changed files with 939 additions and 942 deletions

View file

@ -59,7 +59,7 @@ impl FontTableMethods for FontTable {
}
/// Data from the OS/2 table of an OpenType font.
/// See https://www.microsoft.com/typography/otspec/os2.htm
/// See <https://www.microsoft.com/typography/otspec/os2.htm>
#[derive(Debug)]
struct OS2Table {
us_weight_class: u16,

View file

@ -117,7 +117,7 @@ impl GlyphEntry {
/// non-exhaustively listed in the specification. Other characters may map to the same
/// glyphs, but this function does not take mapping into account.
///
/// See https://drafts.csswg.org/css-text/#word-separator.
/// See <https://drafts.csswg.org/css-text/#word-separator>.
fn char_is_word_separator(&self) -> bool {
self.has_flag(FLAG_CHAR_IS_WORD_SEPARATOR)
}
@ -433,7 +433,7 @@ pub struct GlyphStore {
total_advance: Au,
/// A cache of the number of word separators in the entire glyph store.
/// See https://drafts.csswg.org/css-text/#word-separator.
/// See <https://drafts.csswg.org/css-text/#word-separator>.
total_word_separators: i32,
/// Used to check if fast path should be used in glyph iteration.