Skip to content

Commit eb00a4d

Browse files
lpcoxCopilot
andauthored
Update guards/github-guard/rust-guard/src/lib.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 25f52d0 commit eb00a4d

File tree

1 file changed

+2
-2
lines changed
  • guards/github-guard/rust-guard/src

1 file changed

+2
-2
lines changed

guards/github-guard/rust-guard/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,9 +1236,9 @@ mod tests {
12361236
// {"body":"<padding>中中中..."}
12371237
let prefix = "{\"body\":\""; // 9 bytes
12381238
let padding = "x".repeat(489); // 489 bytes — total so far: 498
1239-
let cjk_tail = "中中中中中"; // 5 × 3 = 15 bytes — total: 513
1239+
let cjk_tail = "中中中中中"; // 5 × 3 = 15 bytes — subtotal: 513
12401240

1241-
let json = format!("{}{}{}\"}}", prefix, padding, cjk_tail);
1241+
let json = format!("{}{}{}\"}}", prefix, padding, cjk_tail); // +3 bytes for "\"}}" => 516 total
12421242
assert!(json.len() > 500);
12431243

12441244
let preview = safe_preview(&json, 500);

0 commit comments

Comments
 (0)