fix: unreverse size and scale builder functions

This commit is contained in:
Paul Delafosse 2022-05-17 07:11:19 +02:00
parent 5711a84275
commit 73ff98b6d6
2 changed files with 5 additions and 6 deletions

View file

@ -118,8 +118,8 @@ impl<'a> LookupBuilder<'a> {
/// .with_size(48)
/// .find();
/// # }
pub fn with_size(mut self, scale: u16) -> Self {
self.scale = scale;
pub fn with_size(mut self, size: u16) -> Self {
self.size = size;
self
}
@ -134,8 +134,8 @@ impl<'a> LookupBuilder<'a> {
/// .with_scale(2)
/// .find();
/// # }
pub fn with_scale(mut self, size: u16) -> Self {
self.size = size;
pub fn with_scale(mut self, scale: u16) -> Self {
self.scale = scale;
self
}