fix Stream#flatten example
Merge pull request #3299 from xuwei-k/stream-flatten-example

fix Stream#flatten example