hru
main
Closes #33
@@ -0,0 +86,4 @@
Ok(f) => f,
Err(err) => {
eprintln!("{}: {}", argv[0], err);
exit(1);
Why 1 and not a sysexit?
1
I’ve neither requested your review nor moved this out of WIP. That means this is not yet nearing completion. Here you will find your answer.
Looks alright.
@@ -0,0 +17,4 @@
Hru takes any whole number in the standard input and, to the standard output,
prints the equivalent number in the most human-readable unit defined by the
International System of Units.
Which unit? Kilometers?
@@ -0,0 +27,4 @@
use sysexits::{ EX_DATAERR, EX_SOFTWARE };
const LIST: [(u32, &str); 10] = [
What's the significance of 10 here?
This is the size of the statically allocated array.
No dependencies set.
The note is not visible to the blocked user.
Closes #33
@@ -0,0 +86,4 @@Ok(f) => f,Err(err) => {eprintln!("{}: {}", argv[0], err);exit(1);Why
1and not a sysexit?I’ve neither requested your review nor moved this out of WIP. That means this is not yet nearing completion. Here you will find your answer.
Looks alright.
@@ -0,0 +17,4 @@Hru takes any whole number in the standard input and, to the standard output,prints the equivalent number in the most human-readable unit defined by theInternational System of Units.Which unit? Kilometers?
@@ -0,0 +27,4 @@use sysexits::{ EX_DATAERR, EX_SOFTWARE };const LIST: [(u32, &str); 10] = [What's the significance of 10 here?
This is the size of the statically allocated array.
Pull request closed