1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-01-31 02:01:05 +00:00

Remove comment in both examples

```diff
-// add_file()
```
This commit is contained in:
Fahmi Akbar Wildana 2019-10-17 06:17:16 +07:00 committed by David Peter
parent e287594654
commit 4664fb6f91
2 changed files with 0 additions and 2 deletions

View File

@ -19,7 +19,6 @@ fn main() {
let mut add_file = |file: &'static str| config.files.push(InputFile::Ordinary(file)); let mut add_file = |file: &'static str| config.files.push(InputFile::Ordinary(file));
add_file("Cargo.toml"); add_file("Cargo.toml");
// add_file("build.rs");
let print = || Controller::new(&config, &assets).run(); let print = || Controller::new(&config, &assets).run();
print().expect("no error"); print().expect("no error");

View File

@ -26,7 +26,6 @@ fn main() -> bat::errors::Result<()> {
}; };
let mut add_file = |file: &'static str| config.files.push(InputFile::Ordinary(file)); let mut add_file = |file: &'static str| config.files.push(InputFile::Ordinary(file));
// add_file("Cargo.toml");
add_file("build.rs"); add_file("build.rs");
let mut output_type = OutputType::from_mode(config.paging_mode, config.pager)?; let mut output_type = OutputType::from_mode(config.paging_mode, config.pager)?;