emma
/
breed
Archived
forked from mars/breed
1
0
Fork 0

Added comment explaining stdin as a file descriptor

This commit is contained in:
Emma Tebibyte 2023-04-11 18:54:33 -04:00
parent 6bde2a1eec
commit 31d9cdf266
1 changed files with 1 additions and 1 deletions

View File

@ -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!(