Skip to content

Commit b0df222

Browse files
committed
additional comment
1 parent 19db7a9 commit b0df222

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/uu/echo/src/echo.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ fn handle_double_hyphens(args: impl uucore::Args) -> impl uucore::Args {
2929
let mut result = Vec::new();
3030

3131
for (i, arg) in args.enumerate() {
32-
if arg == "--" && i == 1 {
32+
// check for argument at index 1 which is the first argument to echo (0 being "echo")
33+
if i == 1 && arg == "--" {
3334
result.push(OsString::from("--"));
3435
}
3536
result.push(arg);

0 commit comments

Comments
 (0)