Fix example for BufferedReader

Fixes #18197