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; }