diff options
author | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-13 21:54:37 +0000 |
---|---|---|
committer | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-13 21:54:37 +0000 |
commit | 79e99ad5037b68cc7285632a44afb758b41eca96 (patch) | |
tree | 961ada364e9d2c334caaf73c45095416580a485f | |
parent | Fixed comment (diff) | |
download | miniserve-79e99ad5037b68cc7285632a44afb758b41eca96.tar.gz miniserve-79e99ad5037b68cc7285632a44afb758b41eca96.zip |
Improved comment
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 0b4c77f..3daca07 100644 --- a/src/main.rs +++ b/src/main.rs @@ -170,7 +170,9 @@ fn main() { }) .collect::<Result<Vec<SocketAddr>, _>>(); - // Note that this should not fail, since CLI parsing succeeded: valid IpAddr + valid port should imply valid SocketAddr + // Note that this should never fail, since CLI parsing succeeded + // This means the format of the IP address is valid, and so is the port + // Valid IpAddr + valid port == valid SocketAddr let socket_addresses = socket_addresses.expect("Failed to parse string as socket address"); server::new(move || { |