We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4e0e10 + 80f0586 commit adb8c8aCopy full SHA for adb8c8a
pages/docs/reference/idioms.md
@@ -276,7 +276,7 @@ stream.buffered().reader().use { reader ->
276
// public <T> T fromJson(JsonElement json, Class<T> classOfT) throws JsonSyntaxException {
277
// ...
278
279
-inline fun <reified T: Any> Gson.fromJson(json): T = this.fromJson(json, T::class.java)
+inline fun <reified T: Any> Gson.fromJson(json: JsonElement): T = this.fromJson(json, T::class.java)
280
```
281
282
### Consuming a nullable Boolean
0 commit comments