`buf` is an `IO`, so that adds a newline to the end of `buf` without printing anything to stdout.