rust-lang / book

The Rust Programming Language

Home Page:https://doc.rust-lang.org/book/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ch20 p469 of pdf missing escapes

ghenry opened this issue · comments

  • I have searched open and closed issues and pull requests for duplicates, using these search terms:
    • ch20
    • ch 2-
  • I have checked the latest main branch to see if this has already been fixed, in this file:
    • html/md not affected

URL to the section(s) of the book with this problem:

Not affected on web/html version

Description of the problem:

on page 469

let response = format!(
    "{status_line}\r\n\
    Content-Length: {length}\r\n\r\n
    {contents}"
);

Suggested fix:

let response = format!(
    "{status_line}\r\n\
    Content-Length: {length}\r\n\r\n\
    {contents}"
);

needs the last escape like on page 468.

PDF is:

THE RUST PROGRAMMING LANGUAGE, 2ND EDITION. Copyright © 2023 by the Rust
Foundation and the Rust Project Developers.

All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner and the publisher.

Third printing
27 26 25 24 23
34567

ISBN-13: 978-1-7185-0310-6 (print)
ISBN-13: 978-1-7185-0311-3 (ebook)

Thanks.

Thanks, great catch! We'll get this fixed in the next print version.

No worries. Really enjoyed the eBook. Finished it last night. Thanks for writing it everyone.