Skip to content

Commit 8ee0162

Browse files
Update README.md
1 parent 0840598 commit 8ee0162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ use the `Ping` method:
7878
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
7979
defer cancel()
8080

81-
client.Ping(ctx, readpref.Primary())
81+
_ = client.Ping(ctx, readpref.Primary())
8282
```
8383

8484
To insert a document into a collection, first retrieve a `Database` and then `Collection` instance from the `Client`:

0 commit comments

Comments
 (0)