From 2847ef89f12ad841bd50e5727d0e0c45ee07217d Mon Sep 17 00:00:00 2001 From: TaoBeier Date: Fri, 6 Oct 2017 12:27:14 -0500 Subject: [PATCH] PYTHON-1388 fix docs example. (#338) --- doc/contributors.rst | 3 ++- doc/examples/authentication.rst | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/contributors.rst b/doc/contributors.rst index e174dd3a1..413e6ae03 100644 --- a/doc/contributors.rst +++ b/doc/contributors.rst @@ -80,4 +80,5 @@ The following is a list of people who have contributed to - ultrabug - Shane Harvey (ShaneHarvey) - Cao Siyang (caosiyang) -- Zhecong Kwok (gzcf) \ No newline at end of file +- Zhecong Kwok (gzcf) +- TaoBeier(tao12345666333) diff --git a/doc/examples/authentication.rst b/doc/examples/authentication.rst index 20c6d5ee9..c85d612e0 100644 --- a/doc/examples/authentication.rst +++ b/doc/examples/authentication.rst @@ -36,7 +36,7 @@ Credentials can be specified as arguments to >>> from pymongo import MongoClient >>> client = MongoClient('example.com', - ... user='user', + ... username='user', ... password='password', ... authSource='the_database', ... authMechanism='SCRAM-SHA-1') @@ -59,7 +59,7 @@ the "MongoDB Challenge-Response" protocol:: >>> from pymongo import MongoClient >>> client = MongoClient('example.com', - ... user='user', + ... username='user', ... password='password', ... authMechanism='MONGODB-CR') >>>