Skip to content

Commit 3572664

Browse files
howjmayjoerg84
andauthored
fix the typo (#307)
Co-authored-by: Joerg Schad <[email protected]>
1 parent 344c139 commit 3572664

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

collection_documents.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type CollectionDocuments interface {
5454
// If a documents element already contains a `_key` field, this will be used as key of the new document,
5555
// otherwise a unique key is created.
5656
// If a documents element contains a `_key` field with a duplicate key, other any other field violates an index constraint,
57-
// a ConflictError is returned in its inded in the errors slice.
57+
// a ConflictError is returned in its index in the errors slice.
5858
// To return the NEW documents, prepare a context with `WithReturnNew`. The data argument passed to `WithReturnNew` must be
5959
// a slice with the same number of entries as the `documents` slice.
6060
// To wait until document has been synced to disk, prepare a context with `WithWaitForSync`.
@@ -150,7 +150,7 @@ const (
150150
// This is the default setting.
151151
ImportOnDuplicateError = ImportOnDuplicate("error")
152152
// ImportOnDuplicateUpdate will update an existing document in the database with the data specified in the request.
153-
// Attributes of the existing document that are not present in the request will be preseved.
153+
// Attributes of the existing document that are not present in the request will be preserved.
154154
ImportOnDuplicateUpdate = ImportOnDuplicate("update")
155155
// ImportOnDuplicateReplace will replace an existing document in the database with the data specified in the request.
156156
ImportOnDuplicateReplace = ImportOnDuplicate("replace")

0 commit comments

Comments
 (0)