Skip to content

Commit

Permalink
Fix typo in docs (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Jan 10, 2025
1 parent 737f6f4 commit 7fbc465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ So if your type subtypes `AbstractDict` and implements its interface, then JSON

Otherwise, the interface to satisfy `StructTypes.DictType()` for reading is:

* `MyType(x::Dict{Symbol, Any})`: implement a constructor that takes a `Dict{Symbol, Any}` of key-value pairs parsed from JSOn
* `MyType(x::Dict{Symbol, Any})`: implement a constructor that takes a `Dict{Symbol, Any}` of key-value pairs parsed from JSON
* `StructTypes.construct(::Type{MyType}, x::Dict; kw...)`: alternatively, you may overload the `StructTypes.construct` method for your type if defining a constructor is undesirable (or would cause other clashes or ambiguities)

The interface to satisfy for writing is:
Expand Down

0 comments on commit 7fbc465

Please sign in to comment.