mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-17 19:42:19 +02:00
Update examples
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
/// A simple program that prints its own source code using the bat library
|
||||
use bat::PrettyPrinter;
|
||||
use std::ffi::OsStr;
|
||||
|
||||
fn main() {
|
||||
let path_to_this_file = OsStr::new(file!());
|
||||
|
||||
PrettyPrinter::new()
|
||||
.input_file(path_to_this_file)
|
||||
.input_file(file!())
|
||||
.print()
|
||||
.expect("no errors");
|
||||
}
|
||||
|
Reference in New Issue
Block a user