Ch. 20: shorter version of corrected listing

This commit is contained in:
Chris Krycho 2024-04-17 17:16:59 -06:00 committed by GitHub
parent 7c9680b286
commit d68ddcc4d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ uses the `status_line` and `filename` variables. This makes it easier to see
the difference between the two cases, and it means we have only one place to
update the code if we want to change how the file reading and response writing
work. The behavior of the code in Listing 20-9 will be the same as that in
Listing 20-6 and 20-7.
Listing 20-7.
Awesome! We now have a simple web server in approximately 40 lines of Rust code
that responds to one request with a page of content and responds to all other