diff options
author | Akshay <[email protected]> | 2021-10-31 16:03:45 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-10-31 16:03:45 +0000 |
commit | 79614a9d6df02c661071f55e81bfc81da5055480 (patch) | |
tree | 0ae4ec11fd3dc0f8b69bc0f32c08858ef23a9485 /bin/src | |
parent | 15ccd864c8869f87a564e5ab7e923dcc2bb54340 (diff) |
fix the spelling of explanationoffline-explain
Diffstat (limited to 'bin/src')
-rw-r--r-- | bin/src/config.rs | 2 | ||||
-rw-r--r-- | bin/src/explain.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/src/config.rs b/bin/src/config.rs index 7188c45..1649017 100644 --- a/bin/src/config.rs +++ b/bin/src/config.rs | |||
@@ -26,7 +26,7 @@ pub enum SubCommand { | |||
26 | Fix(Fix), | 26 | Fix(Fix), |
27 | /// Fix exactly one issue at provided position | 27 | /// Fix exactly one issue at provided position |
28 | Single(Single), | 28 | Single(Single), |
29 | /// Print detailed explaination for a lint warning | 29 | /// Print detailed explanation for a lint warning |
30 | Explain(Explain), | 30 | Explain(Explain), |
31 | } | 31 | } |
32 | 32 | ||
diff --git a/bin/src/explain.rs b/bin/src/explain.rs index c663427..6aefa7e 100644 --- a/bin/src/explain.rs +++ b/bin/src/explain.rs | |||
@@ -9,7 +9,7 @@ pub fn explain(code: u32) -> Result<&'static str, ExplainErr> { | |||
9 | .values() | 9 | .values() |
10 | .flatten() | 10 | .flatten() |
11 | .find(|l| l.code() == code) | 11 | .find(|l| l.code() == code) |
12 | .map(|l| l.explaination()) | 12 | .map(|l| l.explanation()) |
13 | .ok_or(ExplainErr::LintNotFound(code)), | 13 | .ok_or(ExplainErr::LintNotFound(code)), |
14 | } | 14 | } |
15 | } | 15 | } |