diff --git a/source/core/views/specify-collation.txt b/source/core/views/specify-collation.txt
index e0d2b9a1382..8500ecb5188 100644
--- a/source/core/views/specify-collation.txt
+++ b/source/core/views/specify-collation.txt
@@ -19,8 +19,8 @@ Create a ``places`` collection with the following documents:
 .. code-block:: javascript
 
    db.places.insertMany([
-      { _id: 1, category: "café" }
-      { _id: 2, category: "cafe" }
+      { _id: 1, category: "café" },
+      { _id: 2, category: "cafe" },
       { _id: 3, category: "cafE" }
    ])
 
@@ -30,17 +30,17 @@ level:
 .. code-block:: javascript
 
    db.createView(
-      "placesView", 
+      "placesView",
       "places",
       [ { $project: { category: 1 } } ],
-      { collation: { locale: "fr", strength: 1 } } 
+      { collation: { locale: "fr", strength: 1 } }
    )
 
 The following operation uses the view's collation:
 
 .. code-block:: javascript
 
-   db.placesView.count( { category: "cafe" } )
+   db.placesView.countDocuments( { category: "cafe" } )
 
 The operation returns ``3``.