We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66fbbc1 + 8c964e8 commit d2eccddCopy full SHA for d2eccdd
src/lib.rs
@@ -341,7 +341,7 @@ fn is_nontranslatable_codeblock_group(events: &[(usize, Event)]) -> bool {
341
// Heuristic to check whether the codeblock nether has a
342
// literal string nor a line comment. We may actually
343
// want to use a lexer here to make this more robust.
344
- !codeblock_text.contains("\"") && !codeblock_text.contains("//")
+ !codeblock_text.contains('"') && !codeblock_text.contains("//")
345
}
346
_ => false,
347
@@ -1273,6 +1273,6 @@ f("hello world")
1273
```"#,
1274
None,
1275
);
1276
- assert!(is_nontranslatable_codeblock_group(&events) == false);
+ assert!(!is_nontranslatable_codeblock_group(&events));
1277
1278
0 commit comments