From 79614a9d6df02c661071f55e81bfc81da5055480 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 31 Oct 2021 21:33:45 +0530 Subject: fix the spelling of explanation --- bin/src/config.rs | 2 +- bin/src/explain.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/src') 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 { Fix(Fix), /// Fix exactly one issue at provided position Single(Single), - /// Print detailed explaination for a lint warning + /// Print detailed explanation for a lint warning Explain(Explain), } 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> { .values() .flatten() .find(|l| l.code() == code) - .map(|l| l.explaination()) + .map(|l| l.explanation()) .ok_or(ExplainErr::LintNotFound(code)), } } -- cgit v1.2.3