Skip to content

Commit c883fb0

Browse files
Fix for incorrect function name in documentation example (#4342)
1 parent 377c767 commit c883fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/mkdocs/docs/features/arbitrary_types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ struct bad_serializer
265265
}
266266

267267
template <typename BasicJsonType>
268-
static void to_json(const BasicJsonType& j, T& value) {
268+
static void from_json(const BasicJsonType& j, T& value) {
269269
// this calls BasicJsonType::json_serializer<T>::from_json(j, value);
270270
// if BasicJsonType::json_serializer == bad_serializer ... oops!
271271
value = j.template template get<T>(); // oops!

0 commit comments

Comments
 (0)