fasterthanlime / feedback

An issue tracker for articles/series/videos at https://fasterthanli.me/
13 stars 0 forks source link

Article issue - Rust modules vs files #272

Closed bnzone closed 1 year ago

bnzone commented 1 year ago

Love your content! I'm getting into Rust and for me this is probably the best explanation for Rust modules/files system that I've read. Thank you for what you do!

It happened on this page

Link to the page, make sure to point out which paragraph it's in. https://fasterthanli.me/articles/rust-modules-vs-files

Indeed, we don't use sub in main right now. What happens if we remove its (it?) from the use directive? ie., if we change src/main.rs to:

As expected, this builds and run (runs?) just fine:

Here's what the issue is

I think there's just a few small typos in the paragraphs mentioned above (I highlighted the words)

desmodrone commented 1 year ago

@bnzone thanks for catching these, I've fixed them in the article!