Fix example code

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