Skip to content

Commit

Permalink
Restore camelcase behaviour (ALL_CAPS -> AllCaps)
Browse files Browse the repository at this point in the history
  • Loading branch information
goffrie committed Feb 13, 2024
1 parent 89f2638 commit 8e79c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pb-jelly-gen/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ fn camelcase(underscored: &str) -> String {
let mut chars = s.chars();
match chars.next() {
None => String::new(),
Some(first_char) => first_char.to_uppercase().collect::<String>() + chars.as_str(),
Some(first_char) => format!("{}{}", first_char.to_uppercase(), chars.as_str().to_lowercase()),
}
})
.collect()
Expand Down

0 comments on commit 8e79c46

Please sign in to comment.