From b48978b0deabe18714a49a634246b4dc7f11c172 Mon Sep 17 00:00:00 2001 From: skerschb Date: Fri, 23 Feb 2018 10:15:36 -0500 Subject: [PATCH] DOCSP-1910: fixed typo in java example --- source/tutorial/change-streams-example.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/tutorial/change-streams-example.txt b/source/tutorial/change-streams-example.txt index f4013bc7fdb..19bdbcd9a44 100644 --- a/source/tutorial/change-streams-example.txt +++ b/source/tutorial/change-streams-example.txt @@ -359,7 +359,6 @@ more of the following pipeline stages when configuring the change stream: - :pipeline:`$redact` .. tabs-drivers:: - tabs: - id: java-sync content: | @@ -371,7 +370,7 @@ more of the following pipeline stages when configuring the change stream: MongoDatabase db = mongoClient.getDatabase("myTargetDatabase"); - MongoCollection collection = database.getCollection("myTargetCollection"); + MongoCollection collection = db.getCollection("myTargetCollection"); // Create $match pipeline stage. List pipeline = singletonList(Aggregates.match(Filters.or(