Skip to content

Commit

Permalink
change syntax usage
Browse files Browse the repository at this point in the history
  • Loading branch information
zot committed Jul 17, 2024
1 parent 723ea8b commit 376cd30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProtoStruct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function _proto(expr)
)

field_names = keys(field_info)
const_field_names = [name for (; name, isconst) in field_info if isconst]
const_field_names = [name for (; name=name, isconst=isconst) in field_info if isconst]

if ismutable
field_types = :(Tuple{$((isconst ? :($type where {$type}) : :(Base.RefValue{$type} where {$type})
Expand Down

0 comments on commit 376cd30

Please sign in to comment.