]> git.lizzy.rs Git - rust.git/blobdiff - tests/lint_message_convention.rs
Fix `#[expect]` for `clippy::ptr_arg`
[rust.git] / tests / lint_message_convention.rs
index b4d94dc983fec11fecc2efc20e8dbf006193ae07..dd1d441203600cf6f3d124177a4ef29f1ea0d67c 100644 (file)
@@ -16,7 +16,7 @@ impl Message {
     fn new(path: PathBuf) -> Self {
         let content: String = std::fs::read_to_string(&path).unwrap();
         // we don't want the first letter after "error: ", "help: " ... to be capitalized
-        // also no puncutation (except for "?" ?) at the end of a line
+        // also no punctuation (except for "?" ?) at the end of a line
         let regex_set: RegexSet = RegexSet::new(&[
             r"error: [A-Z]",
             r"help: [A-Z]",
@@ -66,7 +66,7 @@ fn lint_message_convention() {
 
     // make sure that lint messages:
     // * are not capitalized
-    // * don't have puncuation at the end of the last sentence
+    // * don't have punctuation at the end of the last sentence
 
     // these directories have interesting tests
     let test_dirs = ["ui", "ui-cargo", "ui-internal", "ui-toml"]