From 61b9010210d8010c65f7b9fc7587f2728bac6e44 Mon Sep 17 00:00:00 2001 From: mos Date: Sat, 2 Nov 2024 16:12:08 +0100 Subject: [PATCH] fix erroneous error count comparison --- bipc/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bipc/src/lib.rs b/bipc/src/lib.rs index a4728c4..de1c768 100644 --- a/bipc/src/lib.rs +++ b/bipc/src/lib.rs @@ -50,7 +50,7 @@ fn read_bip(buf: R) -> Result> { if err_count > 0 { let count_fmt = format!("{err_count} error{}", if err_count == 1 { "" } else { "s" }); - if err_count >= ERR_MAX { + if err_count > ERR_MAX { eprintln!("{} ({} shown)", count_fmt, ERR_MAX); } else { eprintln!("{}", count_fmt);