Skip to content

Commit 228bc14

Browse files
committed
fixup! Fix comments
1 parent b3a8086 commit 228bc14

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/reader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4337,7 +4337,7 @@ fn expand_replacer(
43374337
))
43384338
}
43394339

4340-
// Extract all the token ranges in \p str, along with whether they are an undecorated command.
4340+
// Extract all the token ranges in \p str, along with whether they are a command.
43414341
// Tokens containing command substitutions are skipped; this ensures tokens are non-overlapping.
43424342
struct PositionedToken {
43434343
range: SourceRange,
@@ -4350,7 +4350,7 @@ fn extract_tokens(s: &wstr) -> Vec<PositionedToken> {
43504350
| ParseTreeFlags::LEAVE_UNTERMINATED;
43514351
let ast = Ast::parse(s, ast_flags, None);
43524352

4353-
// Helper to check if a node is the command portion of an undecorated statement.
4353+
// Helper to check if a node is the command portion of a decorated statement.
43544354
let is_command = |node: &dyn ast::Node| {
43554355
let mut cursor = Some(node);
43564356
while let Some(cur) = cursor {

src/tests/abbrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn test_abbreviations() {
131131
// Others should not be.
132132
validate!("of gc", None);
133133

134-
// Others should not be.
134+
// Other decorations generally should be.
135135
validate!("command gc", None, "command git checkout");
136136

137137
// yin/yang expands everywhere.

0 commit comments

Comments
 (0)