aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 1950edc..82091fc 100644
--- a/README.md
+++ b/README.md
@@ -19,9 +19,9 @@ If you what to read any GeoJson file read the value as GeoJsonObject and then te
```java
GeoJsonObject object = new ObjectMapper().readValue(inputStream, GeoJsonObject.class);
-if (object instanceOf Polygon) {
+if (object instanceof Polygon) {
...
-} else if (object instanceOf Feature) {
+} else if (object instanceof Feature) {
...
}
```