@@ -794,7 +794,7 @@ function similar_tuples_or_identifiers(a, b)
794794end
795795
796796# Return the anonymous function taking an iterated value, for use with the
797- # first agument to `Base.Generator`
797+ # first argument to `Base.Generator`
798798function func_for_generator (ctx, body, iter_value_destructuring)
799799 if similar_tuples_or_identifiers (iter_value_destructuring, body)
800800 # Use Base.identity for generators which are filters such as
@@ -1139,7 +1139,7 @@ end
11391139# ncat comes in various layouts which we need to lower to special cases
11401140# - one dimensional along some dimension
11411141# - balanced column first or row first
1142- # - ragged colum first or row first
1142+ # - ragged column first or row first
11431143function expand_ncat (ctx, ex)
11441144 is_typed = kind (ex) == K " typed_ncat"
11451145 outer_dim = numeric_flags (ex)
@@ -1209,7 +1209,7 @@ function expand_ncat(ctx, ex)
12091209 end
12101210 else
12111211 # For unbalanced/ragged concatenations, the shape is specified by the
1212- # number of elements in each ND slice of the array, from layout
1212+ # number of elements in each N-dimensional slice of the array, from layout
12131213 # dimension 1 to N. See the documentation for `hvncat` for details.
12141214 i = 1
12151215 while i <= length (nrow_spans)
@@ -1354,7 +1354,7 @@ function expand_assignment(ctx, ex, is_const=false)
13541354 convert_for_type_decl (ctx, ex, rhs, T, true )
13551355 ]])
13561356 elseif is_identifier_like (x)
1357- # Identifer in lhs[1] is a variable type declaration, eg
1357+ # Identifier in lhs[1] is a variable type declaration, eg
13581358 # x::T = rhs
13591359 @ast ctx ex [K " block"
13601360 [K " decl" lhs[1 ] lhs[2 ]]
@@ -2378,8 +2378,8 @@ end
23782378# Select static parameters which are used in function arguments `arg_types`, or
23792379# transitively used.
23802380#
2381- # The transitive usage check probably doesn't guarentee that the types are
2382- # inferrable during dispatch as they may only be part of the bounds of another
2381+ # The transitive usage check probably doesn't guarantee that the types are
2382+ # inferable during dispatch as they may only be part of the bounds of another
23832383# type. Thus we might get false positives here but we shouldn't get false
23842384# negatives.
23852385function select_used_typevars (arg_types, typevar_names, typevar_stmts)
@@ -3073,7 +3073,7 @@ function expand_function_def(ctx, ex, docs, rewrite_call=identity, rewrite_body=
30733073 push! (sig_stmts, @ast (ctx, ex, [K " curly" " Tuple" :: K"core" arg_types[2 : i]. .. ]))
30743074 end
30753075 sig_type = @ast ctx ex [K " where"
3076- [K " curly" " Union" :: K"core" sig_stmts... ]
3076+ [K " curly" " Union" :: K"core" sig_stmts... ]
30773077 [K " _typevars" [K " block" typevar_names... ] [K " block" ]]
30783078 ]
30793079 out = @ast ctx docs [K " block"
@@ -3907,7 +3907,7 @@ function rewrite_new_calls(ctx, ex, struct_name, global_struct_name,
39073907 )
39083908end
39093909
3910- function _constructor_min_initalized (ex:: SyntaxTree )
3910+ function _constructor_min_initialized (ex:: SyntaxTree )
39113911 if _is_new_call (ex)
39123912 if any (kind (e) == K " ..." for e in ex[2 : end ])
39133913 # Lowering ensures new with splats always inits all fields
@@ -3917,7 +3917,7 @@ function _constructor_min_initalized(ex::SyntaxTree)
39173917 numchildren (ex) - 1
39183918 end
39193919 elseif ! is_leaf (ex)
3920- minimum ((_constructor_min_initalized (e) for e in children (ex)), init= typemax (Int))
3920+ minimum ((_constructor_min_initialized (e) for e in children (ex)), init= typemax (Int))
39213921 else
39223922 typemax (Int)
39233923 end
@@ -3958,7 +3958,7 @@ function expand_struct_def(ctx, ex, docs)
39583958 _collect_struct_fields (ctx, field_names, field_types, field_attrs, field_docs,
39593959 inner_defs, children (type_body))
39603960 is_mutable = has_flags (ex, JuliaSyntax. MUTABLE_FLAG)
3961- min_initialized = minimum ((_constructor_min_initalized (e) for e in inner_defs),
3961+ min_initialized = minimum ((_constructor_min_initialized (e) for e in inner_defs),
39623962 init= length (field_names))
39633963 newtype_var = ssavar (ctx, ex, " struct_type" )
39643964 hasprev = ssavar (ctx, ex, " hasprev" )
@@ -3984,7 +3984,7 @@ function expand_struct_def(ctx, ex, docs)
39843984 need_outer_constructor = false
39853985 if isempty (inner_defs) && ! isempty (typevar_names)
39863986 # To generate an outer constructor each struct type parameter must be
3987- # able to be inferred from the list of fields passed as constuctor
3987+ # able to be inferred from the list of fields passed as constructor
39883988 # arguments.
39893989 #
39903990 # More precisely, it must occur in a field type, or in the bounds of a
0 commit comments