summaryrefslogtreecommitdiff
path: root/experimental/mrustc/mrustc-0001-Fix-two-typos.patch
blob: fc58d2cd870d346451cf12ed6d89fc4fcf7b9386 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From ca30fdadc60b3cb42a0c1e30c1d14088fc2e5cac Mon Sep 17 00:00:00 2001
From: Tobias Bucher <tobiasbucher5991@gmail.com>
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