documents: a comment within ten words
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
4fb59bb8e1
commit
cd16b204f0
1 file changed
+1
-1
@@ -51,7 +51,7 @@ pub(super) fn enter(source: &str, at: usize) -> Option<(Range<usize>, String)> {
|
||||
written => written,
|
||||
};
|
||||
let body = source[start + after..span(item).end].trim_start();
|
||||
// A bare box has no `checked`: it is still a task.
|
||||
// A bare box lacks `checked` yet is a task.
|
||||
let boxed = ["[ ]", "[x]", "[X]"]
|
||||
.iter()
|
||||
.any(|task| body.starts_with(task));
|
||||
|
||||
Reference in new issue
Block a user