From ca30fdadc60b3cb42a0c1e30c1d14088fc2e5cac Mon Sep 17 00:00:00 2001 From: Tobias Bucher Date: Sun, 15 Dec 2024 12:43:13 +0100 Subject: [PATCH 1/6] Fix two typos diff --git a/src/hir/hir_ops.cpp b/src/hir/hir_ops.cpp index 84698c74..0d7c128a 100644 --- a/src/hir/hir_ops.cpp +++ b/src/hir/hir_ops.cpp @@ -713,7 +713,7 @@ bool ::HIR::TraitImpl::overlaps_with(const Crate& crate, const ::HIR::TraitImpl& DEBUG("- Params mismatch"); return false; } - // Matched with second ording + // Matched with second ordering } else if( this->m_trait_args.match_test_generics_fuzz(sp, other.m_trait_args, cb_ident, matcher) != ::HIR::Compare::Equal ) { diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp index 29fc6599..ddf3a168 100644 --- a/src/parse/lex.cpp +++ b/src/parse/lex.cpp @@ -43,7 +43,7 @@ Lexer::Lexer(const ::std::string& filename, AST::Edition edition, ParseState ps) throw ::std::runtime_error("Incomplete BOM - missing \\xBB in second position"); } if( this->getc_byte() != '\xbf' ) { - throw ::std::runtime_error("Incomplete BOM - missing \\xBF in second position"); + throw ::std::runtime_error("Incomplete BOM - missing \\xBF in third position"); } m_line_ofs = 0; } -- 2.40.0