doc: fixed syntax error in stream.Transform example

Found this syntax error when using a tool I made called [mdlint](https://github.com/ChrisWren/mdlint). It lints JavaScript code blocks in markdown files to find syntax errors.