Skip to content

Commit 10dd2ee

Browse files
authored
Fix JsonConverter docs example (#1193)
Closes #1194
1 parent 5c26a0a commit 10dd2ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

json_annotation/lib/src/json_converter.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/// [JsonConverter]s can be placed either on the class:
1414
///
1515
/// ```dart
16-
/// class MyConverter extends JsonConverter<Value, JSON> {
16+
/// class MyJsonConverter extends JsonConverter<Value, JSON> {
1717
/// // TODO
1818
/// }
1919
///
@@ -36,7 +36,7 @@
3636
/// Or finally, passed to the annotation:
3737
///
3838
///```dart
39-
/// @JsonSerializable(converters: [MyConverter()])
39+
/// @JsonSerializable(converters: [MyJsonConverter()])
4040
/// class Example {}
4141
/// ```
4242
abstract class JsonConverter<T, S> {

0 commit comments

Comments
 (0)