Skip to content
Snippets Groups Projects
Commit 0b24a344 authored by j-browne's avatar j-browne Committed by ticki
Browse files

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

Commit 0d1025c5 changed the signature of
is_tty, but the example was not updated.
parent a0751f21
No related branches found
No related tags found
No related merge requests found
......@@ -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 :(");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment