Skip to content

Commit

Permalink
Merge pull request #2509 from ejez/patch-1
Browse files Browse the repository at this point in the history
Fix typo, regarding privileged ports being up to 1023 instead of 1024
  • Loading branch information
carols10cents authored Dec 5, 2020
2 parents 9cfaf8d + f51282c commit 1ab83e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch20-01-single-threaded.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ will return a new `TcpListener` instance. The reason the function is called

The `bind` function returns a `Result<T, E>`, which indicates that binding
might fail. For example, connecting to port 80 requires administrator
privileges (nonadministrators can listen only on ports higher than 1024), so if
privileges (nonadministrators can listen only on ports higher than 1023), so if
we tried to connect to port 80 without being an administrator, binding wouldn’t
work. As another example, binding wouldn’t work if we ran two instances of our
program and so had two programs listening to the same port. Because we’re
Expand Down

0 comments on commit 1ab83e0

Please sign in to comment.