Skip to content

Conversation

amsorrytola
Copy link

Issue

In Chapter 10.2 under the section Implementing a Trait on a Type of The Rust Book, the text says:

This code prints 1 new post: horse_ebooks: of course, as you probably already know, people.

But the actual code uses:

println!("1 new social post: {}", post.summarize());

This creates a mismatch between the expected and actual output. The word “social” is missing in the textual explanation.


This PR fixes

  • Updates the output description to match the format string in the code example.
  • Corrected sentence:
This code prints 1 new social post: horse_ebooks: of course, as you probably already know, people.

📄 Notes

  • Only one line is modified in src/ch10-02-traits.md.
  • No formatting or structural changes elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant