Merge pull request #10160 from dotCooCoo/fix/doc-comments-u-fffd

Docs: doc comments name U+FFFD in place of the literal character
This commit is contained in:
.CooCoo authored and GitHub committed 2026-11-30 02:41:36 -08:00
commit 89d2abca5a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -801,7 +801,7 @@ fn digits_unnamed(text: &str) -> Vec<u8> {
out
}
/// #708, #811: a glyph whose ToUnicode value is U+FFFD isn't type showing "�". This subset font
/// #708, #811: a glyph whose ToUnicode value is U+FFFD isn't type showing `\u{FFFD}`. This subset font
/// has no character map of its own, but the font is installed: each digit is found by its outline
/// there, so the whole text stays one type object, with no outlines left behind.
#[test]
@@ -158,7 +158,7 @@ pub(crate) fn step_place(step: usize, in_batch: Option<usize>) -> String {
}
}
/// `text` as a status message shows it: control characters become `�`, and text past 80
/// `text` as a status message shows it: control characters become `\u{FFFD}`, and text past 80
/// characters ends in `…`.
pub(crate) fn shown_text(text: &str) -> String {
const MAX: usize = 80;