Change is_tty example to conform to new signature (#52)

Commit 0d1025c532 changed the signature of
is_tty, but the example was not updated.
This commit is contained in:
j-browne 2016-10-07 01:43:10 -04:00 committed by ticki
parent a0751f21b0
commit 0b24a3446d
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ extern crate termion;
use std::fs;
fn main() {
if termion::is_tty(fs::File::create("/dev/stdout").unwrap()) {
if termion::is_tty(&fs::File::create("/dev/stdout").unwrap()) {
println!("This is a TTY!");
} else {
println!("This is not a TTY :(");