Skip to content

Commit 4b2801f

Browse files
committed
change parameter to file_path to get rid of bug
1 parent 088df21 commit 4b2801f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • implement-shell-tools/wc

implement-shell-tools/wc/wc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def counter(item):
3131
def process_file(file_path):
3232
global total_lines, total_words, total_characters, file_count
3333

34-
with open(path, "r") as f:
34+
with open(file_path, "r") as f:
3535
content = f.read()
3636

3737
stats = counter(content)

0 commit comments

Comments
 (0)