Skip to content

Commit 33fe0bc

Browse files
author
Chris Cho
committed
allow Consumer type inference
1 parent aa1a28a commit 33fe0bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/includes/iterate_all.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
7373
.. code-block:: java
7474
75-
Consumer<Document> printConsumer = new Consumer<Document>() {
75+
Consumer<Document> printConsumer = new Consumer<>() {
7676
public void accept(final Document doc) {
7777
System.out.println(doc.toJson());
7878
}

0 commit comments

Comments
 (0)