Skip to content

Commit c30040b

Browse files
johnnyshieldsp
authored andcommitted
Fix docstring for Client#read_preference (#2061)
Co-authored-by: shields <shields@tablecheck.com>
1 parent a051a2a commit c30040b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ def server_selector
616616
#
617617
# @return [ BSON::Document ] The user-defined read preference.
618618
# The document may have the following fields:
619-
# - *:read* -- read preference specified as a symbol; valid values are
619+
# - *:mode* -- read preference specified as a symbol; valid values are
620620
# *:primary*, *:primary_preferred*, *:secondary*, *:secondary_preferred*
621621
# and *:nearest*.
622622
# - *:tag_sets* -- an array of hashes.

0 commit comments

Comments
 (0)