Skip to content

Commit 75d4a13

Browse files
author
Isabella Siu
committed
GODRIVER-751 fix mongo.Pipeline example
Change-Id: Id4d638abad5e27416d6acf190150b4ce8149ceb8
1 parent dc6455c commit 75d4a13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mongo/mongo.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ func (me MarshalError) Error() string {
6363
//
6464
// Example usage:
6565
//
66-
// mongo.Pipeline{{
67-
// {"$group", bson.D{{"_id", "$state"}, {"totalPop", bson.D{"$sum", "$pop"}}}},
68-
// {"$match": bson.D{{"totalPop", bson.D{"$gte", 10*1000*1000}}}},
69-
// }}
66+
// mongo.Pipeline{
67+
// {{"$group", bson.D{{"_id", "$state"}, {"totalPop", bson.D{{"$sum", "$pop"}}}}}},
68+
// {{"$match", bson.D{{"totalPop", bson.D{{"$gte", 10*1000*1000}}}}}},
69+
// }
7070
//
7171
type Pipeline []bson.D
7272

0 commit comments

Comments
 (0)