Skip to content

Commit c540e06

Browse files
fixed code snippet (#149)
1 parent f688b68 commit c540e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void aggregationExample() {
9191

9292
private void setWindowFieldsStage() {
9393
// begin setWindowFields
94-
Window pastMonth = Windows.timeRange(-1, Windows.Bound.CURRENT, MongoTimeUnit.MONTH);
94+
Window pastMonth = Windows.timeRange(-1, MongoTimeUnit.MONTH, Windows.Bound.CURRENT);
9595
setWindowFields("$localityId", Sorts.ascending("measurementDateTime"),
9696
WindowedComputations.sum("monthlyRainfall", "$rainfall", pastMonth),
9797
WindowedComputations.avg("monthlyAvgTemp", "$temperature", pastMonth));

0 commit comments

Comments
 (0)