Skip to content

Commit 1c0546a

Browse files
author
Jorge Aparicio
committed
sanitize the in keyword
1 parent d3d050a commit 1c0546a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ impl SanitizeName for String {
265265
fn sanitize(&self) -> String {
266266
match self.as_str() {
267267
"fn" => "fn_".to_owned(),
268+
"in" => "in_".to_owned(),
268269
"match" => "match_".to_owned(),
269270
"mod" => "mod_".to_owned(),
270271
_ => self.to_owned(),

0 commit comments

Comments
 (0)