Skip to content

Commit

Permalink
golint
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangz222 committed Aug 10, 2020
1 parent ae2be77 commit 7e208b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (c *Collection) Find(ctx context.Context, filter interface{}) QueryI {
}
}

// Insert insert one document into the collection
// InsertOne insert one document into the collection
// Reference: https://docs.mongodb.com/manual/reference/command/insert/
func (c *Collection) InsertOne(ctx context.Context, doc interface{}) (result *InsertOneResult, err error) {
res, err := c.collection.InsertOne(ctx, doc)
Expand Down

0 comments on commit 7e208b6

Please sign in to comment.