Skip to content

Commit ecde34f

Browse files
authored
Merge pull request #4 from github/fixCap
fix snake_casing of generated ql identifiers
2 parents d7e53bf + 02e1d42 commit ecde34f

File tree

2 files changed

+176
-176
lines changed

2 files changed

+176
-176
lines changed

node-types/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ fn escape_name(name: &str) -> String {
357357
'-' => result.push_str("minus"),
358358
'@' => result.push_str("at"),
359359
_ if c.is_uppercase() => {
360-
result.push_str(&c.to_lowercase().to_string());
361-
result.push('_')
360+
result.push('_');
361+
result.push_str(&c.to_lowercase().to_string())
362362
}
363363
_ => result.push(c),
364364
}

0 commit comments

Comments
 (0)