Skip to content

Commit

Permalink
Fix wrong colors attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Oct 31, 2024
1 parent 22e39a3 commit 758a695
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 758a695

Please sign in to comment.