Skip to content

Commit

Permalink
typos: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phip1611 committed Sep 28, 2024
1 parent e0e0e85 commit a3d4151
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ clean:
.PHONY: fmt
fmt:
find src -iname \*.hpp -o -iname \*.h -o -iname \*.cpp -o -iname \*.c | xargs clang-format --style=Chromium -i --Werror
echo All fiels in src/ have been formatted.
echo "All files in src/ have been formatted."

.PHONY: fmt_check
fmt_check:
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void check_bg_processes() {
// status code IS NOT exit code!
// see https://linux.die.net/man/2/waitpid
pid_t res = waitpid(p->getPid(), status_code, WNOHANG);
// returns the pid on sucess
// returns the pid on success
if (res != 0) {
printf("-- BG-Process with PID %d finished with Status Code %d\n",
p->getPid(), status_code[0]);
Expand Down
2 changes: 1 addition & 1 deletion src/parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ CommandChain parse_command_chain(const std::string* const input) {
std::vector<std::string> basic_command_strs = str_split_char(input, '|');
for (auto& basic_command_str : basic_command_strs) {
trim(basic_command_str);
// we want to trim the strings because "ls | cat" splitted by '|' would
// we want to trim the strings because "ls | cat" split by '|' would
// otherwise have spaces at the begin/end
}

Expand Down

0 comments on commit a3d4151

Please sign in to comment.