Skip to content

Commit 524af1d

Browse files
committed
update the error in the else for dir
1 parent c6aa7ae commit 524af1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • implement-shell-tools/wc

implement-shell-tools/wc/wc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (pathInfo.isFile()) {
5252
if (options.line) {
5353
console.log(`${stats.lines} ${filePath}`);
5454
} else {
55-
console.log(`${stats.lines} ${stats.words} ${stats.chars} ${fileContent}`);
55+
console.log(`${stats.lines} ${stats.words} ${stats.chars} ${filePath}`);
5656
}
5757
}
5858
}

0 commit comments

Comments
 (0)