Skip to content

Commit a19277c

Browse files
authored
Fix reading example of FrankenStruct (#416)
1 parent 56c6a04 commit a19277c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/reading.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ end
442442
JSON.@choosetype AbstractMonster x -> x.monster_type[] == "vampire" ? Dracula : Werewolf
443443

444444
# Define a custom numeric type with special parsing
445-
struct Percent <: Number
445+
@nonstruct struct Percent <: Number
446446
value::Float64
447447
end
448448

0 commit comments

Comments
 (0)