mirror of
https://github.com/sharkdp/bat
synced 2026-07-27 17:41:42 +00:00
Update examples
This commit is contained in:
@@ -55,8 +55,8 @@ impl<'a> PrettyPrinter<'a> {
|
||||
}
|
||||
|
||||
/// Add a file which should be pretty-printed
|
||||
pub fn input_file(&mut self, path: &OsStr) -> &mut Self {
|
||||
self.inputs.push(Input::ordinary_file(path));
|
||||
pub fn input_file(&mut self, path: impl AsRef<OsStr>) -> &mut Self {
|
||||
self.inputs.push(Input::ordinary_file(path.as_ref()));
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user