Skip to content

Commit

Permalink
Fix wrong colors attribute (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV authored Nov 1, 2024
1 parent 22e39a3 commit fd1d7ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit fd1d7ba

Please sign in to comment.