Skip to content

Commit 415c13b

Browse files
committed
fix MongoDB shell syntax highlighting
1 parent cdd858e commit 415c13b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/doctrine/mongodb_session_storage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ Because MongoDB uses dynamic collection schemas, you do not need to do anything
162162
session collection. However, you may want to add an index to improve garbage collection performance.
163163
From the `MongoDB shell`_:
164164

165-
.. code-block:: text
165+
.. code-block:: bash
166166
167-
use session_db
168-
db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
167+
$ use session_db
168+
$ db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
169169
170170
.. _installed and configured a MongoDB server: http://docs.mongodb.org/manual/installation/
171171
.. _MongoDB shell: http://docs.mongodb.org/v2.2/tutorial/getting-started-with-the-mongo-shell/

0 commit comments

Comments
 (0)