From 5877db28b499eb023aeddf9ceba0edc95b9d73a3 Mon Sep 17 00:00:00 2001 From: Vincent Esche Date: Fri, 8 Jan 2021 15:41:46 +0100 Subject: Fixed typos in private type names --- crates/mbe/src/syntax_bridge.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/mbe/src') diff --git a/crates/mbe/src/syntax_bridge.rs b/crates/mbe/src/syntax_bridge.rs index 244a81e99..e648519f9 100644 --- a/crates/mbe/src/syntax_bridge.rs +++ b/crates/mbe/src/syntax_bridge.rs @@ -476,14 +476,14 @@ impl Convertor { #[derive(Debug)] enum SynToken { - Ordiniary(SyntaxToken), + Ordinary(SyntaxToken), Punch(SyntaxToken, TextSize), } impl SynToken { fn token(&self) -> &SyntaxToken { match self { - SynToken::Ordiniary(it) => it, + SynToken::Ordinary(it) => it, SynToken::Punch(it, _) => it, } } @@ -495,7 +495,7 @@ impl SrcToken for SynToken { } fn to_char(&self) -> Option { match self { - SynToken::Ordiniary(_) => None, + SynToken::Ordinary(_) => None, SynToken::Punch(it, i) => it.text().chars().nth((*i).into()), } } @@ -535,7 +535,7 @@ impl TokenConvertor for Convertor { } else { self.punct_offset = None; let range = curr.text_range(); - (SynToken::Ordiniary(curr), range) + (SynToken::Ordinary(curr), range) }; Some(token) @@ -557,7 +557,7 @@ impl TokenConvertor for Convertor { let token = if curr.kind().is_punct() { SynToken::Punch(curr, 0.into()) } else { - SynToken::Ordiniary(curr) + SynToken::Ordinary(curr) }; Some(token) } -- cgit v1.2.3