2 ms·
I actually like that it omitted the inline syntax. It was the source of my confusion when I read the official Rust Book. Examples with inline syntax don't make
by pornel 6y ago
I actually like that it omitted the inline syntax. It was the source of my confusion when I read the official Rust Book. Examples with inline syntax don't make it clear that `mod` goes in the parent file (since there's no child file, so you don't have the reference). "But it's the same as if you just put the {} in another file" was like "the proof is trivial, left as an exercise for the reader".