mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-28 11:59:41 +00:00
Remove panic
This commit is contained in:
parent
66529503ff
commit
310acf010e
1 changed files with 5 additions and 2 deletions
|
|
@ -412,8 +412,11 @@ impl<'a> Formattable for ExposedName<'a> {
|
|||
) {
|
||||
buf.indent(indent);
|
||||
if buf.flags().snakify
|
||||
&& !self.as_str().is_empty()
|
||||
&& self.as_str().chars().nth(0).unwrap().is_ascii_lowercase()
|
||||
&& self
|
||||
.as_str()
|
||||
.chars()
|
||||
.next()
|
||||
.is_some_and(|c| c.is_ascii_lowercase())
|
||||
{
|
||||
snakify_camel_ident(buf, self.as_str());
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue