From 7fd9313d06e8f506f4eb1e9f9d5feba7938e90cb Mon Sep 17 00:00:00 2001 From: bflatastic Date: Thu, 29 Oct 2026 22:12:34 +0700 Subject: [PATCH] SVG: the placeholder comment names the constant --- crates/svg/src/export.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/svg/src/export.rs b/crates/svg/src/export.rs index e29059ae1..66c9b5010 100644 --- a/crates/svg/src/export.rs +++ b/crates/svg/src/export.rs @@ -41,7 +41,7 @@ pub(crate) fn export(doc: &Document, opts: &ExportOptions, native: Option<&[u8]> if opts.object_ids != ObjectIds::Unique { return write(doc, opts, native, ""); } - // Unique ids: write the body once with a placeholder prefix of fixed length (12 bytes), + // Unique ids: write the body once with a placeholder prefix ([`UNIQUE_PLACEHOLDER`]), // hash the result, and replace the placeholder with the computed prefix in a single pass. let mut out = write(doc, opts, native, UNIQUE_PLACEHOLDER); let prefix = format!("u{:010x}-", fnv1a(out.svg.as_bytes()) & 0xff_ffff_ffff);