diff options
Diffstat (limited to 'crates/utils/string_proc/src/string_processer.rs')
| -rw-r--r-- | crates/utils/string_proc/src/string_processer.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/utils/string_proc/src/string_processer.rs b/crates/utils/string_proc/src/string_processer.rs index 6ad8768..8b51c12 100644 --- a/crates/utils/string_proc/src/string_processer.rs +++ b/crates/utils/string_proc/src/string_processer.rs @@ -45,11 +45,10 @@ impl StringProcesser { while let Some(c) = chars.next() { processed.push(c); - if let Some(&next) = chars.peek() { - if c.is_lowercase() && next.is_uppercase() { + if let Some(&next) = chars.peek() + && c.is_lowercase() && next.is_uppercase() { processed.push(' '); } - } } processed |
