]> git.lizzy.rs Git - rust.git/commitdiff
Apply suggestions from code review
authorJonas Schievink <jonasschievink@gmail.com>
Sun, 6 Dec 2020 13:23:55 +0000 (14:23 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Dec 2020 13:23:55 +0000 (14:23 +0100)
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt
crates/rust-analyzer/src/diagnostics/to_proto.rs

index 8f8953cd2883e4fda1eaa4e52579b53a89b7edf3..bdcf2a38fdaa3de6924bc46f9a2949a8892a8e3a 100644 (file)
@@ -51,7 +51,7 @@
                                 },
                             },
                         },
-                        message: "Exact error occured here",
+                        message: "Exact error occurred here",
                     },
                 ],
             ),
index 766c342f1ff7f8d554d224c88f978dff339af8d3..f16f97131e94f3bf7cf3e2a331bd6e79812e9342 100644 (file)
@@ -266,7 +266,7 @@ pub(crate) fn map_rust_diagnostic_to_lsp(
                 let information_for_additional_diagnostic =
                     vec![lsp_types::DiagnosticRelatedInformation {
                         location: location.clone(),
-                        message: "Exact error occured here".to_string(),
+                        message: "Exact error occurred here".to_string(),
                     }];
 
                 let diagnostic = lsp_types::Diagnostic {