mirror of https://github.com/zkat/miette.git
Correct some typos
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
This commit is contained in:
parent
2b4d67d7cd
commit
ac6cfdac9d
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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?"))]
|
||||
|
|
|
|||
Loading…
Reference in New Issue