From e51aab78af05e93781b803eed3c64067ba0d195a Mon Sep 17 00:00:00 2001 From: argszero Date: Tue, 13 Oct 2026 13:41:00 +0800 Subject: [PATCH] docs(option_escape_gate): drop the stale README esc count from the module note MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The module note of the option-template escaping gate cited "`ui/README.md` 五处写「先 `esc()`」" -- "ui/README.md writes 'esc() first' in five places". No reading of that file yields five today: - lines containing `esc(` -> 8 - lines containing `esc()` -> 4 - lines containing `转义` -> 4 - lines containing the literal 「先 `esc()`」 -> 1 (only :161) The number never counted the phrase it names. At `1484311` (#337) -- the commit that wrote this line and created this gate -- the literal phrase appeared once as well. It matches at most the `esc(` line count of that commit's *parent* tree (5), and `1484311` itself raised that count to 8 by adding the R71 section to `ui/README.md`: a snapshot of a quantity its own author keeps raising, i.e. an ownerless count. No test asserts it, so this is the repo's established "drop the number, keep the assertion" fix (cf. `deploy_gate.rs` / `state_gate.rs`, R162/R164/R165). The assertion stays true: `ui/README.md` does write 「先 `esc()`」 (the highlight bullet at :161). --- src/option_escape_gate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/option_escape_gate.rs b/src/option_escape_gate.rs index e046017..76ecdfe 100644 --- a/src/option_escape_gate.rs +++ b/src/option_escape_gate.rs @@ -15,7 +15,7 @@ //! //! 作者在上架表单的「Plan」/「厂商」两处 **已经**给文本槽加了 `esc(`,只是属性值那半没加 —— **同一句判据只加了 //! 一半**(与 `marketplace-success-sentinel`(#308)同形)。转义还是这个文件的成文约定: -//! `ui/README.md` 五处写「先 `esc()`」。 +//! `ui/README.md` 里写着「先 `esc()`」。 //! //! # 判据(射程如实) //!