Skip to content

Commit a36f98b

Browse files
committed
Added the most simple example possible
1 parent 70bf3bc commit a36f98b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/simple.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extern crate ctrlc;
2+
use ctrlc::CtrlC;
3+
fn main() {
4+
CtrlC::set_handler(|| println!("Hello world!"));
5+
loop {}
6+
}

0 commit comments

Comments
 (0)