Skip to content

Commit ba74a9a

Browse files
authored
Fixes typos in all other files
1 parent 4f0feef commit ba74a9a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

bytecode/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl Location {
4646
pub trait Constant: Sized {
4747
type Name: AsRef<str>;
4848

49-
/// Tranforms the given Constant to a BorrowedConstant
49+
/// Transforms the given Constant to a BorrowedConstant
5050
fn borrow_constant(&self) -> BorrowedConstant<Self>;
5151
/// Get the data this Constant holds.
5252
fn into_data(self) -> ConstantData {

compiler/src/symboltable.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub struct Symbol {
111111
// this is required to correct the scope in the analysis.
112112
pub is_assign_namedexpr_in_comprehension: bool,
113113

114-
// inidicates that the symbol is used a bound iterator variable. We distinguish this case
114+
// indicates that the symbol is used a bound iterator variable. We distinguish this case
115115
// from normal assignment to detect unallowed re-assignment to iterator variables.
116116
pub is_iter: bool,
117117

@@ -470,7 +470,7 @@ impl SymbolTableAnalyzer {
470470
SymbolTableType::Function => {
471471
if let Some(parent_symbol) = symbols.get_mut(&symbol.name) {
472472
if let SymbolScope::Unknown = parent_symbol.scope {
473-
// this information is new, as the asignment is done in inner scope
473+
// this information is new, as the assignment is done in inner scope
474474
parent_symbol.is_assigned = true;
475475
}
476476

@@ -504,7 +504,7 @@ impl SymbolTableAnalyzer {
504504
None => {
505505
// extend the scope of the inner symbol
506506
// as we are in a nested comprehension, we expect that the symbol is needed
507-
// ouside, too, and set it therefore to non-local scope. I.e., we expect to
507+
// outside, too, and set it therefore to non-local scope. I.e., we expect to
508508
// find a definition on a higher level
509509
let mut cloned_sym = symbol.clone();
510510
cloned_sym.scope = SymbolScope::Free;
@@ -989,7 +989,7 @@ impl SymbolTableBuilder {
989989
}
990990

991991
NamedExpr { target, value } => {
992-
// named expressions are not allowed in the definiton of
992+
// named expressions are not allowed in the definition of
993993
// comprehension iterator definitions
994994
if let ExpressionContext::IterDefinitionExp = context {
995995
return Err(SymbolTableError {

parser/src/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ mod tests {
16911691

16921692
#[test]
16931693
fn test_escape_char_in_byte_literal() {
1694-
// backslash doesnt escape
1694+
// backslash does not escape
16951695
let source = r##"b"omkmok\Xaa""##;
16961696
let tokens = lex_source(source);
16971697
let res = vec![111, 109, 107, 109, 111, 107, 92, 88, 97, 97];

pdc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# Pre Delivery Check - or PDC for short - runs all build and check steps.
3-
# The intension is to run all checks before delivering (or raising a PR or commiting or what ever you want to use it for).
3+
# The intention is to run all checks before delivering (or raising a PR or committing or what ever you want to use it for).
44
#
55
# PDC executes all of the configured actions in the given order and reports which of them failed,
66
# without stopping in case of an fail.

0 commit comments

Comments
 (0)