From 0b24a3446d6500e08801a948d1b08e9101d89d92 Mon Sep 17 00:00:00 2001 From: j-browne Date: Fri, 7 Oct 2016 01:43:10 -0400 Subject: [PATCH] Change is_tty example to conform to new signature (#52) Commit 0d1025c532b06c59898908e3def509f63eaa3257 changed the signature of is_tty, but the example was not updated. --- examples/is_tty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/is_tty.rs b/examples/is_tty.rs index 7b64df6..52d1bc1 100644 --- a/examples/is_tty.rs +++ b/examples/is_tty.rs @@ -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 :(");