add example for std.stdio.stdin

Also removes some unnecessary trailing whitespace.