Skip to content

Commit 675f341

Browse files
authoredApr 26, 2023
fix(misc): Correct some typos (#255)
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
1 parent 2b4d67d commit 675f341

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Examples of unacceptable behavior by participants include:
3737
* Public or private harassment, deliberate intimidation, or threats.
3838
* 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.
3939
* Publishing private screenshots or quotes of interactions in the context of this project without all quoted users' *explicit* consent.
40-
* Publishing of private communication that doesn't have to do with reporting harrassment.
40+
* Publishing of private communication that doesn't have to do with reporting harassment.
4141
* Any of the above even when [presented as "ironic" or "joking"](https://en.wikipedia.org/wiki/Hipster_racism).
4242
* Any attempt to present "reverse-ism" versions of the above as violations. Examples of reverse-isms are "reverse racism", "reverse sexism", "heterophobia", and "cisphobia".
4343
* 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.

‎src/handlers/graphical.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl GraphicalReportHandler {
100100
/// Whether to include [`Diagnostic::url()`] in the output.
101101
///
102102
/// Disabling this is not recommended, but can be useful for more easily
103-
/// reproducable tests, as `url(docsrs)` links are version-dependent.
103+
/// reproducible tests, as `url(docsrs)` links are version-dependent.
104104
pub fn with_urls(mut self, urls: bool) -> Self {
105105
self.links = match (self.links, urls) {
106106
(_, false) => LinkStyle::None,

‎tests/graphical.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ fn single_line_highlight_offset_zero() -> Result<(), MietteError> {
323323
}
324324

325325
#[test]
326-
fn single_line_higlight_offset_end_of_line() -> Result<(), MietteError> {
326+
fn single_line_highlight_offset_end_of_line() -> Result<(), MietteError> {
327327
#[derive(Debug, Diagnostic, Error)]
328328
#[error("oops!")]
329329
#[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> {
359359
}
360360

361361
#[test]
362-
fn single_line_higlight_include_end_of_line() -> Result<(), MietteError> {
362+
fn single_line_highlight_include_end_of_line() -> Result<(), MietteError> {
363363
#[derive(Debug, Diagnostic, Error)]
364364
#[error("oops!")]
365365
#[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> {
396396
}
397397

398398
#[test]
399-
fn single_line_higlight_include_end_of_line_crlf() -> Result<(), MietteError> {
399+
fn single_line_highlight_include_end_of_line_crlf() -> Result<(), MietteError> {
400400
#[derive(Debug, Diagnostic, Error)]
401401
#[error("oops!")]
402402
#[diagnostic(code(oops::my::bad), help("try doing it better next time?"))]

0 commit comments

Comments
 (0)
Please sign in to comment.