Repository: zkat/miette
Pull request #255 (2023-04-26 01:59:03)

Correct some typos
Corrects some typos.


Patch:
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index 8a9e3ef..d5aa153 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -37,7 +37,7 @@ Examples of unacceptable behavior by participants include:
   * Public or private harassment, deliberate intimidation, or threats.
   * Publishing others' private information, such as a physical or electronic address, without explicit permission. This includes any sort of "outing" of any aspect of someone's identity without their consent.
   * Publishing private screenshots or quotes of interactions in the context of this project without all quoted users' *explicit* consent.
-  * Publishing of private communication that doesn't have to do with reporting harrassment.
+  * Publishing of private communication that doesn't have to do with reporting harassment.
   * Any of the above even when [presented as "ironic" or "joking"](https://en.wikipedia.org/wiki/Hipster_racism).
   * Any attempt to present "reverse-ism" versions of the above as violations. Examples of reverse-isms are "reverse racism", "reverse sexism", "heterophobia", and "cisphobia".
   * Unsolicited explanations under the assumption that someone doesn't already know it. Ask before you teach! Don't assume what people's knowledge gaps are.
diff --git a/src/handlers/graphical.rs b/src/handlers/graphical.rs
index 71df2cb..1ab09fa 100644
--- a/src/handlers/graphical.rs
+++ b/src/handlers/graphical.rs
@@ -100,7 +100,7 @@ impl GraphicalReportHandler {
     /// Whether to include [`Diagnostic::url()`] in the output.
     ///
     /// Disabling this is not recommended, but can be useful for more easily
-    /// reproducable tests, as `url(docsrs)` links are version-dependent.
+    /// reproducible tests, as `url(docsrs)` links are version-dependent.
     pub fn with_urls(mut self, urls: bool) -> Self {
         self.links = match (self.links, urls) {
             (_, false) => LinkStyle::None,


Test patch:
diff --git a/tests/graphical.rs b/tests/graphical.rs
index 34dc433..f929884 100644
--- a/tests/graphical.rs
+++ b/tests/graphical.rs
@@ -323,7 +323,7 @@ fn single_line_highlight_offset_zero() -> Result<(), MietteError> {
 }
 
 #[test]
-fn single_line_higlight_offset_end_of_line() -> Result<(), MietteError> {
+fn single_line_highlight_offset_end_of_line() -> Result<(), MietteError> {
     #[derive(Debug, Diagnostic, Error)]
     #[error("oops!")]
     #[diagnostic(code(oops::my::bad), help("try doing it better next time?"))]
@@ -359,7 +359,7 @@ fn single_line_higlight_offset_end_of_line() -> Result<(), MietteError> {
 }
 
 #[test]
-fn single_line_higlight_include_end_of_line() -> Result<(), MietteError> {
+fn single_line_highlight_include_end_of_line() -> Result<(), MietteError> {
     #[derive(Debug, Diagnostic, Error)]
     #[error("oops!")]
     #[diagnostic(code(oops::my::bad), help("try doing it better next time?"))]
@@ -396,7 +396,7 @@ fn single_line_higlight_include_end_of_line() -> Result<(), MietteError> {
 }
 
 #[test]
-fn single_line_higlight_include_end_of_line_crlf() -> Result<(), MietteError> {
+fn single_line_highlight_include_end_of_line_crlf() -> Result<(), MietteError> {
     #[derive(Debug, Diagnostic, Error)]
     #[error("oops!")]
     #[diagnostic(code(oops::my::bad), help("try doing it better next time?"))]