Skip to content

Commit 59a7a11

Browse files
committed
fix: typo in args_xmludpater
1 parent e8b70b8 commit 59a7a11

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/@aml/@aml_create.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function aml_create(expr::Expr, args_param, args_defaultvalue, args_type, args_v
3838

3939
args_xmlcreator=Vector{Expr}(undef,amlargs_num)
4040
args_xmlextractor=Vector{Expr}(undef,amlargs_num)
41-
args_xmludpater=Vector{Expr}(undef,amlargs_num)
41+
args_xmlupdater=Vector{Expr}(undef,amlargs_num)
4242

4343
args_varcall = Vector{Expr}(undef,amlargs_num)
4444

@@ -68,7 +68,7 @@ function aml_create(expr::Expr, args_param, args_defaultvalue, args_type, args_v
6868
args_xmlextractor[iArg]=get_arg_xmlextractor(argcustomextractor, inps...)
6969

7070
if is_struct_mutable
71-
args_xmludpater[iArg] = get_arg_xmlupdater(argcustomupdater, inps...)
71+
args_xmlupdater[iArg] = get_arg_xmlupdater(argcustomupdater, inps...)
7272
end
7373

7474
end # endfor
@@ -128,7 +128,7 @@ function aml_create(expr::Expr, args_param, args_defaultvalue, args_type, args_v
128128
self_method = :( ($(esc(S)))(in::$(esc(S))) = $(esc(S))(in.aml) )
129129
pprint_method = :( AcuteML.pprint(in::$(esc(S))) = pprint(in.aml) )
130130

131-
struct_xmlupdater = get_struct_xmlupdater(is_struct_mutable, S, args_xmludpater, struct_function, args_varcall, custom_updater_end)
131+
struct_xmlupdater = get_struct_xmlupdater(is_struct_mutable, S, args_xmlupdater, struct_function, args_varcall, custom_updater_end)
132132

133133
out = quote
134134
Base.@__doc__($(esc(struct_definition)))

src/@aml/@aml_create/get_struct_xml_.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function get_struct_xmlextractor(SQ, P, args_xmlextractor, struct_xmlchecker, es
6868
return struct_xmlextractor_curly
6969
end
7070
################################################################
71-
function get_struct_xmlupdater(is_struct_mutable, T, args_xmludpater, struct_function, args_varcall, custom_updater_end)
71+
function get_struct_xmlupdater(is_struct_mutable, T, args_xmlupdater, struct_function, args_varcall, custom_updater_end)
7272
if is_struct_mutable
7373
# struct_xmlchecker
7474
if !ismissing(struct_function[1])
@@ -86,7 +86,7 @@ function get_struct_xmlupdater(is_struct_mutable, T, args_xmludpater, struct_fun
8686
function Base.setproperty!(str::($(esc(T))),name::Symbol, value)
8787
setfield!(str,name,value)
8888
$struct_xmlchecker
89-
$(args_xmludpater...)
89+
$(args_xmlupdater...)
9090
$(esc(custom_updater_end))
9191
end
9292
end

0 commit comments

Comments
 (0)