Skip to content

Commit 43673a1

Browse files
committed
docs(error): Update reported failure code
Fixes #3332
1 parent a7f33ef commit 43673a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ impl Error {
477477

478478
/// Prints the error and exits.
479479
///
480-
/// Depending on the error kind, this either prints to `stderr` and exits with a status of `1`
480+
/// Depending on the error kind, this either prints to `stderr` and exits with a status of `2`
481481
/// or prints to `stdout` and exits with a status of `0`.
482482
pub fn exit(&self) -> ! {
483483
if self.use_stderr() {

0 commit comments

Comments
 (0)