Skip to content

[Web]: Typos in https://dev.java/learn/lambdas/combining-chaining-composing/ #52

Description

@fjbaldon

What happened?

There are possible typos in the Chaining Consumers with Default Methods section:

Consumer<String> longAndPrint = log.andThen(print);

I think this should be logAndPrint

In this example, printAndLog is a consumer that will first pass the message to the log consumer and then pass it to the print consumer.

I think this should be logAndPrint

I'm not sure if any of my suggestions are correct.

What OS are you seeing the problem on?

Linux

What browsers are you seeing the problem on?

Chrome

Contact Details (optional)

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions