diff --git a/google-cloud-datastore/README.md b/google-cloud-datastore/README.md index 80f5d2475d92..05067b8b627a 100644 --- a/google-cloud-datastore/README.md +++ b/google-cloud-datastore/README.md @@ -90,7 +90,7 @@ import com.google.cloud.datastore.KeyFactory; Then add the following code to put an entity in Datastore. ```java -KeyFactory keyFactory = datastore.newKeyFactory().kind("Person"); +KeyFactory keyFactory = datastore.newKeyFactory().setKind("Person"); Key key = keyFactory.newKey("john.doe@gmail.com"); Entity entity = Entity.newBuilder(key) .set("name", "John Doe")