fix logic in char_length()
This commit is contained in:
parent
995aee7e87
commit
aa12db5ec7
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ pub fn char_length(base: u32) -> u32 {
|
|||
for i in 1..base + 1 {
|
||||
let num = base.pow(i);
|
||||
if num > 26 {
|
||||
return num;
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return u32::MAX;
|
||||
|
|
Loading…
Add table
Reference in a new issue