From ec516fb0be170afba13c8e4efd255f01753378d7 Mon Sep 17 00:00:00 2001 From: Leynos Date: Wed, 30 Jul 2025 21:57:01 +0100 Subject: [PATCH] Fix duplicate punctuation after inline code --- AGENTS.md | 7 +++---- src/wrap.rs | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 06f65d12..0a41a4bb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -29,10 +29,9 @@ documentation should omit examples where the example serves only to reiterate the test logic. - **Keep file size managable.** No single code file may be longer than 400 - lines. - Long switch statements or dispatch tables should be broken up by feature and - constituents colocated with targets. Large blocks of test data should be - moved to external data files. + lines. Long switch statements or dispatch tables should be broken up by + feature and constituents colocated with targets. Large blocks of test data + should be moved to external data files. ## Documentation Maintenance diff --git a/src/wrap.rs b/src/wrap.rs index 25501de0..7d331bd3 100644 --- a/src/wrap.rs +++ b/src/wrap.rs @@ -290,6 +290,7 @@ fn wrap_preserving_code(text: &str, width: usize) -> Vec { .last_mut() .expect("checked last line exists") .push_str(&tokens[i]); + i += 1; continue; }