diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-18 11:03:36 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-18 11:03:39 +0200 |
commit | 08b9e5b5c3eddbc948cc9952783c1925b90ed9e0 (patch) | |
tree | db3a8b2f74f9aeaa4c8d474fee4c56e1df7f4759 /src/util | |
parent | f8e68f603264ccc6ced2444ca1917c67ed52bff6 (diff) | |
download | markdown-rs-08b9e5b5c3eddbc948cc9952783c1925b90ed9e0.tar.gz markdown-rs-08b9e5b5c3eddbc948cc9952783c1925b90ed9e0.tar.bz2 markdown-rs-08b9e5b5c3eddbc948cc9952783c1925b90ed9e0.zip |
Fix dead link in docs
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/decode_character_reference.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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. |