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.
1 parent 057547e commit 8c964e8Copy full SHA for 8c964e8
src/lib.rs
@@ -339,7 +339,7 @@ fn is_nontranslatable_codeblock_group(events: &[(usize, Event)]) -> bool {
339
// Heuristic to check whether the codeblock nether has a
340
// literal string nor a line comment. We may actually
341
// want to use a lexer here to make this more robust.
342
- !codeblock_text.contains("\"") && !codeblock_text.contains("//")
+ !codeblock_text.contains('"') && !codeblock_text.contains("//")
343
}
344
_ => false,
345
@@ -1271,6 +1271,6 @@ f("hello world")
1271
```"#,
1272
None,
1273
);
1274
- assert!(is_nontranslatable_codeblock_group(&events) == false);
+ assert!(!is_nontranslatable_codeblock_group(&events));
1275
1276
0 commit comments