From 08b9e5b5c3eddbc948cc9952783c1925b90ed9e0 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 18 Jul 2022 11:03:36 +0200 Subject: Fix dead link in docs --- src/util/decode_character_reference.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util/decode_character_reference.rs') 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. -- cgit