mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Fix builder calls to new API
Update the example with the right API https://github.com/square/moshi/blob/master/moshi/src/main/java/com/squareup/moshi/Moshi.java#L155
This commit is contained in:
@@ -7,7 +7,7 @@ To use, supply an instance of your desired converter when building your `Moshi`
|
|||||||
|
|
||||||
```java
|
```java
|
||||||
Moshi moshi = new Moshi.Builder()
|
Moshi moshi = new Moshi.Builder()
|
||||||
.addConverterFactory(Date.class, new Rfc3339DateJsonAdapter())
|
.add(Date.class, new Rfc3339DateJsonAdapter())
|
||||||
//etc
|
//etc
|
||||||
.build();
|
.build();
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user