Skip to content

Commit d10a992

Browse files
committed
DOCSP-5497: clean up codeblocks to use correct language labels
1 parent 4157867 commit d10a992

25 files changed

+81
-96
lines changed

source/includes/driver-example-delete-57.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
1. Copy the following filter into the Compass query bar and click
2121
:guilabel:`Find`:
2222

23-
.. code-block:: sh
23+
.. code-block:: javascript
2424
2525
{ "status" : "A" }
2626

source/includes/driver-example-delete-58.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
1. Copy the following filter into the Compass query bar and click
1515
:guilabel:`Find`:
1616

17-
.. code-block:: sh
17+
.. code-block:: javascript
1818
1919
{ "status" : "D" }
2020

source/includes/driver-example-query-14.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
tabs:
44
- id: shell
55
content: |
6-
.. class:: copyable-code
76
.. code-block:: javascript
87
98
db.inventory.insertMany( [
@@ -95,7 +94,7 @@
9594

9695
First you will need to create the MongoCollection object you would like to query against.
9796

98-
.. code-block:: sh
97+
.. code-block:: java
9998
10099
MongoCollection<Document> collection = db.getCollection("inventory");
101100
@@ -158,7 +157,7 @@
158157

159158
First you will need to initialize the collection.
160159

161-
.. code-block:: sh
160+
.. code-block:: c#
162161
163162
var collection = database.GetCollection<BsonDocument>("inventory");
164163

source/includes/driver-example-query-15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
First you will need to create the MongoCollection object you would like to query against.
6262

63-
.. code-block:: sh
63+
.. code-block:: java
6464
6565
MongoCollection<Document> collection = db.getCollection("inventory");
6666

source/includes/driver-example-query-17.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
First you will need to create the MongoCollection object you would like to query against.
6161

62-
.. code-block:: sh
62+
.. code-block:: java
6363
6464
MongoCollection<Document> collection = db.getCollection("inventory");
6565

source/includes/driver-example-query-18.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
First you will need to create the MongoCollection object you would like to query against.
6262

63-
.. code-block:: sh
63+
.. code-block:: java
6464
6565
MongoCollection<Document> collection = db.getCollection("inventory");
6666

source/includes/driver-example-update-52.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ to ``paper``. The operation uses:
2929
1. Copy the following filter into the Compass query bar and click
3030
:guilabel:`Find`:
3131

32-
.. code-block:: sh
32+
.. code-block:: javascript
3333
3434
{ "item" : "paper" }
3535
@@ -65,7 +65,7 @@ to ``paper``. The operation uses:
6565
embedded documents, the operation uses :ref:`dot notation
6666
<document-dot-notation>`.
6767

68-
- :``$currentDate`` to set the ``lastModified`` field to the
68+
- ``$currentDate`` to set the ``lastModified`` field to the
6969
current date.
7070

7171
Before updating the data, you'll need to assign the ``inventory`` collection in the ``test`` database to a variable:
@@ -93,7 +93,7 @@ to ``paper``. The operation uses:
9393
embedded documents, the operation uses :ref:`dot notation
9494
<document-dot-notation>`.
9595

96-
- :``$currentDate`` to set the ``lastModified`` field to the
96+
- ``$currentDate`` to set the ``lastModified`` field to the
9797
current date.
9898

9999
.. literalinclude:: /driver-examples/test_examples.py
@@ -168,7 +168,7 @@ to ``paper``. The operation uses:
168168
embedded documents, the operation uses :ref:`dot notation
169169
<document-dot-notation>`.
170170

171-
- :``$currentDate`` to set the ``lastModified`` field to the
171+
- ``$currentDate`` to set the ``lastModified`` field to the
172172
current date.
173173

174174
# - id: java-async

source/includes/driver-example-update-53.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1. Copy the following filter into the Compass query bar and click
1919
:guilabel:`Find`:
2020

21-
.. code-block:: sh
21+
.. code-block:: javascript
2222
2323
{ "qty" : { $lt: 50 } }
2424

source/includes/drivers_connect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185

186186

187187
.. literalinclude:: /driver-examples/csharpconnect.cs
188-
:language: javascript
188+
:language: c#
189189
:dedent: 0
190190
:start-after: Start Connect
191191
:end-before: End Connect

source/includes/iterate_all.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
103103
- id: csharp
104104
content: |
105-
.. code-block:: csharp
105+
.. code-block:: c#
106106
107107
foreach (var doc in result) {
108108
Console.WriteLine(doc.ToJson());

0 commit comments

Comments
 (0)