forked from mars/breed
Added comment explaining stdin as a file descriptor
This commit is contained in:
parent
6bde2a1eec
commit
31d9cdf266
|
@ -357,7 +357,7 @@ fn main() -> Result<()> {
|
|||
let mut buf = Vec::new();
|
||||
|
||||
match argv.get(1).map(|s| s.as_str()) {
|
||||
Some("-") | None => unsafe { File::from_raw_fd(0) },
|
||||
Some("-") | None => unsafe { File::from_raw_fd(0) }, // stdin as a file
|
||||
Some(path) => {
|
||||
std::fs::File::open(path).unwrap_or_else(|_| {
|
||||
eprintln!(
|
||||
|
|
Loading…
Reference in New Issue