Skip to content

Commit 683c01d

Browse files
committed
refactoring cat.js file
1 parent 997dc07 commit 683c01d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • implement-shell-tools/cat

implement-shell-tools/cat/cat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ for (const arg of args) {
2727
for (const line of lines) {
2828

2929
if (flag === "-n") {
30-
console.log(`${String(lineNumber).padStart(6)} ${line}`);;
30+
console.log(`${String(lineNumber).padStart(6)}\t${line}`);
3131
lineNumber++;
3232
} else if (flag === "-b") {
3333
if (line === "") {

0 commit comments

Comments
 (0)