// counter_associated.rs
[...]
let c = Counter::increment(f);
What is `f` here? // counter_associated.rs
[...]
let c = Counter::increment(f);
What is `f` here?Or, write in Markdown and use tooling to perform tests the same way Rustdoc does, if you wrote what claims to be code, just scoop it up and execute it, if it doesn't compile then we find out before we publish.
I'd say 80% of the time when I write more than one or two lines I write a bug, often it's a minor typo that the compiler would catch but sometimes it's a larger mistake and means I should re-evaluate my entire premise.