We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f085d9c commit 7890aa5Copy full SHA for 7890aa5
mongo/doc.go
@@ -11,7 +11,7 @@
11
// Basic usage of the driver starts with creating a Client from a connection
12
// string. To do so, call the NewClient and Connect functions:
13
//
14
-// client, err := NewClient("mongodb://foo:bar@localhost:27017")
+// client, err := NewClient(options.Client().ApplyURI("mongodb://foo:bar@localhost:27017"))
15
// if err != nil { return err }
16
// ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
17
// defer cancel()
0 commit comments