Skip to content

Commit 0dac7f9

Browse files
committed
expr: Add comment why character is expected to be a backslash
1 parent 3f9a5f3 commit 0dac7f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/uu/expr/src/syntax_tree.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ impl StringOp {
184184
},
185185
'$' => {
186186
if let Some('\\') = pattern_chars.peek() {
187+
// The next character was checked to be a backslash
187188
let backslash = pattern_chars.next().unwrap_or_default();
188189
match pattern_chars.peek() {
189190
// End of a capturing group

0 commit comments

Comments
 (0)