Skip to content

Commit 7890aa5

Browse files
author
Isabella Siu
committed
GODRIVER-840 fix mongo.Client() example in doc.go
Change-Id: Id8993c2641c74babdcebb789a5852d767e1a349d
1 parent f085d9c commit 7890aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongo/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Basic usage of the driver starts with creating a Client from a connection
1212
// string. To do so, call the NewClient and Connect functions:
1313
//
14-
// client, err := NewClient("mongodb://foo:bar@localhost:27017")
14+
// client, err := NewClient(options.Client().ApplyURI("mongodb://foo:bar@localhost:27017"))
1515
// if err != nil { return err }
1616
// ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
1717
// defer cancel()

0 commit comments

Comments
 (0)