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:
parent
a0751f21b0
commit
0b24a3446d
|
@ -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 :(");
|
||||
|
|
Loading…
Reference in New Issue