pretzelhammer / rust-blog

Educational blog posts for Rust beginners
Apache License 2.0
7.53k stars 396 forks source link

Fix some typos #79

Closed Sajjon closed 2 months ago

Sajjon commented 3 months ago

Description

I fixed some typos.

Suggestions

typos + pre-commit

I used typos crate, which is great! We might consider adding a pre-commit hook running typos, like Radix does in Sargon (can be ) (it can be configured)

Line break

I too am a fan of not having to do line breaks in text. But I recently shifted my opinion here, since having single long lines ("auto line breaked" by markdown renderer) makes it hard to see changes in git!

E.g. quite hard to see the single letter typo fix I did here:

Screenshot 2024-08-09 at 09 54 35

But if line breaks would be part of the text itself, it would have been trivial.

The drawback of it is, ofc, that we are forcing a certain line width to readers! Which might be OK in a code base, but since this a blog, that might not be the right choice here!