We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 377c0d8 commit 157f4adCopy full SHA for 157f4ad
1 file changed
crates/moonbit/src/lib.rs
@@ -2880,7 +2880,7 @@ impl ToMoonBitIdent for str {
2880
| "struct" | "enum" | "trait" | "traitalias" | "derive" | "while" | "break"
2881
| "continue" | "import" | "return" | "throw" | "raise" | "try" | "catch" | "pub"
2882
| "priv" | "readonly" | "true" | "false" | "_" | "test" | "loop" | "for" | "in"
2883
- | "impl" | "with" | "guard" | "async" | "is" => {
+ | "impl" | "with" | "guard" | "async" | "is" | "init" | "main" => {
2884
format!("{self}_")
2885
}
2886
_ => self.to_snake_case(),
0 commit comments