From e073a2eb7b2ba86638f2b1459e5d3ac363afeb1f Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Sat, 11 Jan 2025 17:04:04 +0000 Subject: [PATCH] refactor: rename variable --- helix-core/src/case_conversion.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helix-core/src/case_conversion.rs b/helix-core/src/case_conversion.rs index 814ea4a9d..5fe5bac1a 100644 --- a/helix-core/src/case_conversion.rs +++ b/helix-core/src/case_conversion.rs @@ -12,7 +12,7 @@ pub fn simple_case_conversion( } } -pub fn complex_case_conversion( +pub fn smart_case_conversion( text: impl Iterator, buf: &mut Tendril, capitalize_first: bool, @@ -112,15 +112,15 @@ pub fn into_snake_case(text: impl Iterator, buf: &mut Tendril) { } pub fn into_title_case(text: impl Iterator, buf: &mut Tendril) { - complex_case_conversion(text, buf, true, Some(' ')); + smart_case_conversion(text, buf, true, Some(' ')); } pub fn into_camel_case(text: impl Iterator, buf: &mut Tendril) { - complex_case_conversion(text, buf, false, None); + smart_case_conversion(text, buf, false, None); } pub fn into_pascal_case(text: impl Iterator, buf: &mut Tendril) { - complex_case_conversion(text, buf, true, None); + smart_case_conversion(text, buf, true, None); } fn to_case(text: I, to_case_with: fn(I, &mut Tendril)) -> Tendril