Skip to content

Commit 9fa6096

Browse files
committed
Fix AppendDriverInfo comment.
1 parent 551ff2e commit 9fa6096

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

mongo/client.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,16 +311,11 @@ func (c *Client) connect() error {
311311
return nil
312312
}
313313

314-
// AppendDriverInfo appends the provided DriverInfo to the driver information
315-
// that will be sent to the server in handshake requests when establishing new
316-
// connections. The provided info will overwrite any existing values.
317-
//
318-
// AppendsDriverInfo appends the provided [options.DriverInfo] to the metadata
314+
// AppendDriverInfo appends the provided [options.DriverInfo] to the metadata
319315
// (e.g. name, version, platform) that will be sent to the server in handshake
320-
// requests when establishing new connections. The provided info will overwrite
321-
// any existing values.
316+
// requests when establishing new connections.
322317
//
323-
// Repeated calls to appendMetadata with equivalent DriverInfo is a no-op.
318+
// Repeated calls to AppendDriverInfo with equivalent DriverInfo is a no-op.
324319
//
325320
// Metadata is limited to 512 bytes; any excess will be truncated.
326321
func (c *Client) AppendDriverInfo(info options.DriverInfo) {

0 commit comments

Comments
 (0)