Skip to content

Commit 8a7413b

Browse files
fix conflicting start-after and end-before (#333)
1 parent 67bb7e2 commit 8a7413b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/fundamentals/builders/aggregates.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ Use these methods to construct pipeline stages and specify them in your
4545
aggregation as a list:
4646

4747
.. literalinclude:: /includes/fundamentals/code-snippets/builders/AggBuilders.java
48-
:start-after: begin sampleAggregation
49-
:end-before: end sampleAggregation
48+
:start-after: begin aggregationSample
49+
:end-before: end aggregationSample
5050
:language: java
5151
:dedent:
5252

source/includes/fundamentals/code-snippets/builders/AggBuilders.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ public static void main(String[] args) {
8282
}
8383

8484
private void aggregationExample() {
85-
// begin sampleAggregation
85+
// begin aggregationSample
8686
Bson matchStage = match(eq("some_field", "some_criteria"));
8787
Bson sortByCountStage = sortByCount("some_field");
8888
collection.aggregate(asList(matchStage, sortByCountStage)).forEach(doc -> System.out.println(doc));
89-
// end sampleAggregation
89+
// end aggregationSample
9090
}
9191

9292
private void setWindowFieldsStage() {

0 commit comments

Comments
 (0)