Skip to content

Commit ef01835

Browse files
author
Chris Cho
authored
DOCSP-10956: remove the leading line in code snippets (#113)
* DOCSP-10956: remove the leading line and dedents in code snippets used in literalincludes
1 parent 43be34f commit ef01835

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1
-82
lines changed

source/code-snippets/authentication/aws.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignored first line
21
const { MongoClient } = require("mongodb");
32

43
// Replace the following with values for your environment.

source/code-snippets/authentication/cr.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignored first line
21
const { MongoClient } = require("mongodb");
32

43
// Replace the following with values for your environment.

source/code-snippets/authentication/default.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignored first line
21
const { MongoClient } = require("mongodb");
32

43
// Replace the following with values for your environment.

source/code-snippets/authentication/sha1.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignored first line
21
const { MongoClient } = require("mongodb");
32

43
// Replace the following with values for your environment.

source/code-snippets/authentication/sha256.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignored first line
21
const { MongoClient } = require("mongodb");
32

43
// Replace the following with values for your environment.

source/code-snippets/authentication/x509.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignored first line
21
const { MongoClient } = require("mongodb");
32

43
// Replace the following with values for your environment.

source/code-snippets/collation/aggregation-collation.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignored first line
21
collection.aggregate(
32
[
43
{ $group: { "_id": "$first_name", "nameCount": { "$sum": 1 } } },

source/code-snippets/collation/collection-collation.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// ignored first line
2-
31
// start create collection with collation
42
// Create the collection with a collation
53
db.createCollection("souvenirs", {
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
// ignored first line
21
collection.find({ city: "New York" }, { collation: { locale: "de" } })
32
.sort({ name: 1 });

source/code-snippets/collation/findOneAndDelete-collation.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignored first line
21
// start findOneAndDelete example without collation
32
await collection.findOneAndDelete({ a: { $gt: "100" } });
43
// end findOneAndDelete example without collation

0 commit comments

Comments
 (0)