Skip to content

Commit

Permalink
Fix for incorrect function name in documentation example (#4342)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprabhat99 committed Apr 10, 2024
1 parent 377c767 commit c883fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/mkdocs/docs/features/arbitrary_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ struct bad_serializer
}

template <typename BasicJsonType>
static void to_json(const BasicJsonType& j, T& value) {
static void from_json(const BasicJsonType& j, T& value) {
// this calls BasicJsonType::json_serializer<T>::from_json(j, value);
// if BasicJsonType::json_serializer == bad_serializer ... oops!
value = j.template template get<T>(); // oops!
Expand Down

0 comments on commit c883fb0

Please sign in to comment.