Skip to content

Commit 5dfb904

Browse files
authored
Merge pull request #1421 from pauloleitemoreira/master
Change deprecated kind(String) method to setKind(String) in README.MD
2 parents 7729401 + 37cdb9d commit 5dfb904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-datastore/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ import com.google.cloud.datastore.KeyFactory;
9090
Then add the following code to put an entity in Datastore.
9191

9292
```java
93-
KeyFactory keyFactory = datastore.newKeyFactory().kind("Person");
93+
KeyFactory keyFactory = datastore.newKeyFactory().setKind("Person");
9494
Key key = keyFactory.newKey("john.doe@gmail.com");
9595
Entity entity = Entity.newBuilder(key)
9696
.set("name", "John Doe")

0 commit comments

Comments
 (0)