Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: service/datastore/key.go

Issue 2987513002: [datastore] improve docs around auto-generated *Keys on Put. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « service/datastore/interface.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/key.go
diff --git a/service/datastore/key.go b/service/datastore/key.go
index 8757f61ec57c318ad2ea0af65c6beadfd0e53cc1..5dc34378e688219ffaccd3d1bcb0dd55d3592732 100644
--- a/service/datastore/key.go
+++ b/service/datastore/key.go
@@ -250,7 +250,8 @@ func (k *Key) String() string {
return b.String()
}
-// IsIncomplete returns true iff k doesn't have an id yet.
+// IsIncomplete returns true iff the last token of this Key doesn't define
+// either a StringID or an IntID.
func (k *Key) IsIncomplete() bool {
return k.LastTok().IsIncomplete()
}
« no previous file with comments | « service/datastore/interface.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698