Fix example code

Shell gets completion candidates from stdin but function `println` writes to stderr.