Merge pull request #53 from gavofyork/gav

Add flush function.
This commit is contained in:
Arkadiy Paronyan 2016-01-15 13:15:38 +01:00
commit ec4ea71335
1 changed files with 5 additions and 0 deletions

View File

@ -34,3 +34,8 @@ macro_rules! xx {
From::from(From::from($x))
}
}
pub fn flush(s: String) {
::std::io::stdout().write(s.as_bytes()).unwrap();
::std::io::stdout().flush().unwrap();
}