From 8208fc4f872d1d5a40a10080129d9afd25329d9e Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 11 Dec 2021 15:30:19 +0100 Subject: [PATCH] Cleanup comment to match implementation This was recently changed to return bool. --- src/parse_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse_util.cpp b/src/parse_util.cpp index 077553ca3..271bf1c1c 100644 --- a/src/parse_util.cpp +++ b/src/parse_util.cpp @@ -810,7 +810,7 @@ static bool append_syntax_error(parse_error_list_t *errors, size_t source_locati return true; } -/// Returns 1 if the specified command is a builtin that may not be used in a pipeline. +/// Returns true if the specified command is a builtin that may not be used in a pipeline. static const wchar_t *const forbidden_pipe_commands[] = {L"exec", L"case", L"break", L"return", L"continue"}; static bool parser_is_pipe_forbidden(const wcstring &word) {