diff --git a/source/tutorial/write-scripts-for-the-mongo-shell.txt b/source/tutorial/write-scripts-for-the-mongo-shell.txt index d84c8c267aa..d9b80adf13d 100644 --- a/source/tutorial/write-scripts-for-the-mongo-shell.txt +++ b/source/tutorial/write-scripts-for-the-mongo-shell.txt @@ -90,7 +90,7 @@ This returns the output of :method:`db.getCollectionNames()` using the evaluate a javascript file ~~~~~~~~~~~~~~~~~~~~~~~~~~ -you can specify a ``.js`` file to the :program:`mongo` shell, and +You can specify a ``.js`` file to the :program:`mongo` shell, and :program:`mongo` will evaluate the javascript directly. consider the following example: @@ -98,11 +98,11 @@ following example: mongo localhost:27017/test myjsfile.js -this operation evaluates the ``myjsfile.js`` script in a +This operation evaluates the ``myjsfile.js`` script in a :program:`mongo` shell that connects to the ``test`` :term:`database` on the :program:`mongod` instance accessible via the ``localhost`` interface on port ``27017``. -alternately, you can specify the mongodb connection parameters inside +Alternately, you can specify the mongodb connection parameters inside of the javascript file using the ``Mongo()`` constructor. See :ref:`mongo-shell-new-connections` for more information.