From fd1d7ba3715f748de265fe0508c193e30dec43fa Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com> Date: Fri, 1 Nov 2024 09:12:32 +0100 Subject: [PATCH] Fix wrong colors attribute (#48) --- src/object.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object.rs b/src/object.rs index ea34a1f..95745d6 100644 --- a/src/object.rs +++ b/src/object.rs @@ -927,10 +927,10 @@ impl DecodeParms<'_> { /// Defaults to 1. pub fn colors(&mut self, colors: i32) -> &mut Self { if colors <= 0 { - panic!("`Columns` must be greater than 0"); + panic!("`Colors` must be greater than 0"); } - self.pair(Name(b"Columns"), colors); + self.pair(Name(b"Colors"), colors); self }