book icon indicating copy to clipboard operation
book copied to clipboard

Ch20 p469 of pdf missing escapes

Open ghenry opened this issue 10 months ago • 2 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.

ghenry avatar Apr 13 '24 21:04 ghenry

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

carols10cents avatar Apr 15 '24 14:04 carols10cents

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

ghenry avatar Apr 15 '24 14:04 ghenry