Skip to content

Commit

Permalink
fix(misc): Correct some typos (#255)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
  • Loading branch information
goggle committed Apr 26, 2023
1 parent 2b4d67d commit 675f341
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/graphical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions tests/graphical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?"))]
Expand Down Expand Up @@ -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?"))]
Expand Down Expand Up @@ -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?"))]
Expand Down

0 comments on commit 675f341

Please sign in to comment.