@@ -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 {
0 commit comments