diff options
Diffstat (limited to '')
-rw-r--r-- | src/construct/character_reference.rs | 4 | ||||
-rw-r--r-- | src/util/decode_character_reference.rs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/construct/character_reference.rs b/src/construct/character_reference.rs index 4f2505d..2bfed45 100644 --- a/src/construct/character_reference.rs +++ b/src/construct/character_reference.rs @@ -37,7 +37,7 @@ //! but does affect whether they match. //! Depending on the name, one or more cases are allowed, such as that `AMP` //! and `amp` are both allowed but other cases are not. -//! See [`CHARACTER_REFERENCE_NAMES`][character_reference_names] for which +//! See [`CHARACTER_REFERENCES`][character_references] for which //! names match. //! //! ## Tokens @@ -58,7 +58,7 @@ //! [text]: crate::content::text //! [character_escape]: crate::construct::character_reference //! [decode_numeric]: crate::util::decode_character_reference::decode_numeric -//! [character_reference_names]: crate::constant::CHARACTER_REFERENCE_NAMES +//! [character_references]: crate::constant::CHARACTER_REFERENCES //! [html]: https://html.spec.whatwg.org/multipage/parsing.html#character-reference-state use crate::constant::{ diff --git a/src/util/decode_character_reference.rs b/src/util/decode_character_reference.rs index 4619032..5277f90 100644 --- a/src/util/decode_character_reference.rs +++ b/src/util/decode_character_reference.rs @@ -6,8 +6,8 @@ use crate::constant::CHARACTER_REFERENCES; /// /// Turn the name coming from a named character reference (without the `&` or /// `;`) into a string. -/// This looks the given string up in [`CHARACTER_REFERENCE_NAMES`][] and then -/// takes the corresponding value from [`CHARACTER_REFERENCE_VALUES`][]. +/// This looks the given string up at `0` in the tuples of +/// [`CHARACTER_REFERENCES`][] and then takes the corresponding value from `1`. /// /// The result is `String` instead of `char` because named character references /// can expand into multiple characters. @@ -24,7 +24,7 @@ use crate::constant::CHARACTER_REFERENCES; /// /// ## Panics /// -/// This function panics if a name not in [`CHARACTER_REFERENCE_NAMES`][] is +/// This function panics if a name not in [`CHARACTER_REFERENCES`][] is /// given. /// It is expected that figuring out whether a name is allowed is handled in /// the parser. |