Pipes example: update comments

The comments referred to some obsolete method names.

Also, fixed a spelling mistake.