Skip to content

Commit fd1d7ba

Browse files
authored
Fix wrong colors attribute (#48)
1 parent 22e39a3 commit fd1d7ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/object.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -927,10 +927,10 @@ impl DecodeParms<'_> {
927927
/// Defaults to 1.
928928
pub fn colors(&mut self, colors: i32) -> &mut Self {
929929
if colors <= 0 {
930-
panic!("`Columns` must be greater than 0");
930+
panic!("`Colors` must be greater than 0");
931931
}
932932

933-
self.pair(Name(b"Columns"), colors);
933+
self.pair(Name(b"Colors"), colors);
934934
self
935935
}
936936

0 commit comments

Comments
 (0)